unsafe { llvm::LLVMGetUndef(t) }
}
+ fn const_poison(&self, t: &'ll Type) -> &'ll Value {
+ unsafe { llvm::LLVMGetPoison(t) }
+ }
+
fn const_int(&self, t: &'ll Type, i: i64) -> &'ll Value {
unsafe { llvm::LLVMConstInt(t, i as u64, True) }
}
name: &str,
) -> Option<&'tcx DllImport> {
tcx.native_library(id)
- .map(|lib| lib.dll_imports.iter().find(|di| di.name.as_str() == name))
- .flatten()
+ .and_then(|lib| lib.dll_imports.iter().find(|di| di.name.as_str() == name))
}
pub(crate) fn is_mingw_gnu_toolchain(target: &Target) -> bool {