Apply TBAA to the correct instruction.

Another instance of the bug in PR #933.
This commit is contained in:
Nick Lewycky
2019-11-07 12:42:29 -08:00
parent 374fd5b393
commit dccaa3a285

View File

@ -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),
);