Remove unneeded curly braces.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223809 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Frederic Riss 2014-12-09 18:57:39 +00:00
parent 53c4c062c1
commit 63e42c2782

View File

@ -1121,11 +1121,9 @@ bool llvm::replaceDbgDeclareForAlloca(AllocaInst *AI, Value *NewAllocaAddress,
// alloca itself. // alloca itself.
SmallVector<int64_t, 4> NewDIExpr; SmallVector<int64_t, 4> NewDIExpr;
NewDIExpr.push_back(dwarf::DW_OP_deref); NewDIExpr.push_back(dwarf::DW_OP_deref);
if (DIExpr) { if (DIExpr)
for (unsigned i = 0, n = DIExpr.getNumElements(); i < n; ++i) { for (unsigned i = 0, n = DIExpr.getNumElements(); i < n; ++i)
NewDIExpr.push_back(DIExpr.getElement(i)); NewDIExpr.push_back(DIExpr.getElement(i));
}
}
// Insert llvm.dbg.declare in the same basic block as the original alloca, // Insert llvm.dbg.declare in the same basic block as the original alloca,
// and remove old llvm.dbg.declare. // and remove old llvm.dbg.declare.