Don't use llvm intrinsic names in cg_ssa

This commit is contained in:
bjorn3 2018-11-24 16:01:47 +01:00
parent 8698f5c43d
commit 15a5009af0
9 changed files with 113 additions and 108 deletions

View file

@ -470,8 +470,8 @@ impl MiscMethods<'tcx> for CodegenCx<'ll, 'tcx> {
}
}
impl IntrinsicDeclarationMethods<'tcx> for CodegenCx<'b, 'tcx> {
fn get_intrinsic(&self, key: &str) -> &'b Value {
impl CodegenCx<'b, 'tcx> {
crate fn get_intrinsic(&self, key: &str) -> &'b Value {
if let Some(v) = self.intrinsics.borrow().get(key).cloned() {
return v;
}