mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
[asan] correctly use ConstantExpr::getGetElementPtr. Catch by NAKAMURA Takumi
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149172 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0ae06de094
commit
f1639abf1a
@ -484,7 +484,7 @@ bool AddressSanitizer::insertGlobalRedzones(Module &M) {
|
||||
Indices2[1] = IRB.getInt32(0);
|
||||
|
||||
G->replaceAllUsesWith(
|
||||
ConstantExpr::getGetElementPtr(NewGlobal, Indices2, 2));
|
||||
ConstantExpr::getGetElementPtr(NewGlobal, Indices2, true));
|
||||
NewGlobal->takeName(G);
|
||||
G->eraseFromParent();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user