Remove unneeded curly braces.
authorFrederic Riss <friss@apple.com>
Tue, 9 Dec 2014 18:57:39 +0000 (18:57 +0000)
committerFrederic Riss <friss@apple.com>
Tue, 9 Dec 2014 18:57:39 +0000 (18:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223809 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/Local.cpp

index 13838ba80b6f4354f54634378b202ee614dcbed4..f70e14d78d70f03e3b841e849511a705fc336d8d 100644 (file)
@@ -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.