From 203efd0c060a85e24b912e54566651bbd8f8464f Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Wed, 6 Nov 2019 23:25:39 -0800 Subject: [PATCH] Apply TBAA to the correct instruction. Caught by LLVM verifier complaining about !tbaa on a getelementptr. --- lib/llvm-backend/src/intrinsics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/llvm-backend/src/intrinsics.rs b/lib/llvm-backend/src/intrinsics.rs index 4c34b6d58..143c9bba4 100644 --- a/lib/llvm-backend/src/intrinsics.rs +++ b/lib/llvm-backend/src/intrinsics.rs @@ -1037,7 +1037,7 @@ impl<'a> CtxType<'a> { module.clone(), intrinsics, field_name, - globals_array_ptr_ptr.as_instruction_value().unwrap(), + global_array_ptr.as_instruction_value().unwrap(), None, ); let const_index = intrinsics.i32_ty.const_int(index, false);