diff options
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/Local.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp index 13838ba..f70e14d 100644 --- a/llvm/lib/Transforms/Utils/Local.cpp +++ b/llvm/lib/Transforms/Utils/Local.cpp @@ -1121,11 +1121,9 @@ bool llvm::replaceDbgDeclareForAlloca(AllocaInst *AI, Value *NewAllocaAddress, // alloca itself. SmallVector<int64_t, 4> NewDIExpr; NewDIExpr.push_back(dwarf::DW_OP_deref); - if (DIExpr) { - for (unsigned i = 0, n = DIExpr.getNumElements(); i < n; ++i) { + if (DIExpr) + for (unsigned i = 0, n = DIExpr.getNumElements(); i < n; ++i) NewDIExpr.push_back(DIExpr.getElement(i)); - } - } // Insert llvm.dbg.declare in the same basic block as the original alloca, // and remove old llvm.dbg.declare. |