Add braces to fix dangling else.
authorDan Gohman <gohman@apple.com>
Tue, 24 Aug 2010 02:40:27 +0000 (02:40 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 24 Aug 2010 02:40:27 +0000 (02:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111896 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bitcode/Writer/ValueEnumerator.cpp

index 69789c006a49f6d316936b0ec124ada88a042d23..b0964d44536dda703e76a8a9df7210cdcbceb698 100644 (file)
@@ -287,10 +287,10 @@ void ValueEnumerator::EnumerateFunctionLocalMetadata(const MDNode *N) {
   // MDNodes and all function-local values they reference.
   for (unsigned i = 0, e = N->getNumOperands(); i != e; ++i)
     if (Value *V = N->getOperand(i)) {
-      if (MDNode *O = dyn_cast<MDNode>(V))
+      if (MDNode *O = dyn_cast<MDNode>(V)) {
         if (O->isFunctionLocal() && O->getFunction())
           EnumerateFunctionLocalMetadata(O);
-      else if (isa<Instruction>(V) || isa<Argument>(V))
+      else if (isa<Instruction>(V) || isa<Argument>(V))
         EnumerateValue(V);
     }