Clean up DIExpression::prependDIExpr a little. (NFC)

llvm-svn: 301662
This commit is contained in:
Adrian Prantl
2017-04-28 17:51:05 +00:00
parent 2634d0ff5c
commit 109b236850
6 changed files with 20 additions and 27 deletions

View File

@@ -2723,7 +2723,7 @@ void FunctionStackPoisoner::processStaticAllocas() {
Value *NewAllocaPtr = IRB.CreateIntToPtr(
IRB.CreateAdd(LocalStackBase, ConstantInt::get(IntptrTy, Desc.Offset)),
AI->getType());
replaceDbgDeclareForAlloca(AI, NewAllocaPtr, DIB, /*Deref=*/false);
replaceDbgDeclareForAlloca(AI, NewAllocaPtr, DIB, DIExpression::NoDeref);
AI->replaceAllUsesWith(NewAllocaPtr);
}