933: Apply TBAA to the correct instruction. r=syrusakbary a=nlewycky

Caught by LLVM verifier complaining about !tbaa on a getelementptr.


Co-authored-by: Nick Lewycky <nick@wasmer.io>
This commit is contained in:
bors[bot] 2019-11-07 14:09:57 +00:00 committed by GitHub
commit 374fd5b393
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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