From dccaa3a2855360658c8208f2e60ef89ab32b6902 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Thu, 7 Nov 2019 12:42:29 -0800 Subject: [PATCH] Apply TBAA to the correct instruction. Another instance of the bug in PR #933. --- 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 143c9bba420..fe1c72d932d 100644 --- a/lib/llvm-backend/src/intrinsics.rs +++ b/lib/llvm-backend/src/intrinsics.rs @@ -1055,7 +1055,7 @@ impl<'a> CtxType<'a> { module.clone(), intrinsics, "global_ptr", - globals_array_ptr_ptr.as_instruction_value().unwrap(), + global_ptr.as_instruction_value().unwrap(), Some(index as u32), );