[asan] correctly use ConstantExpr::getGetElementPtr. Catch by NAKAMURA Takumi

llvm-svn: 149172
This commit is contained in:
Kostya Serebryany 2012-01-28 04:27:16 +00:00
parent b10ebda354
commit 7471d1303d
1 changed files with 1 additions and 1 deletions

View File

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