[llvm] r223809 - Remove unneeded curly braces.
Frederic Riss
friss at apple.com
Tue Dec 9 10:57:39 PST 2014
Author: friss
Date: Tue Dec 9 12:57:39 2014
New Revision: 223809
URL: http://llvm.org/viewvc/llvm-project?rev=223809&view=rev
Log:
Remove unneeded curly braces.
Modified:
llvm/trunk/lib/Transforms/Utils/Local.cpp
Modified: llvm/trunk/lib/Transforms/Utils/Local.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/Local.cpp?rev=223809&r1=223808&r2=223809&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/Local.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/Local.cpp Tue Dec 9 12:57:39 2014
@@ -1121,11 +1121,9 @@ bool llvm::replaceDbgDeclareForAlloca(Al
// 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.
More information about the llvm-commits
mailing list