forked from OSchip/llvm-project
[asan] correctly use ConstantExpr::getGetElementPtr. Catch by NAKAMURA Takumi
llvm-svn: 149172
This commit is contained in:
parent
b10ebda354
commit
7471d1303d
|
@ -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…
Reference in New Issue