[llvm-commits] [llvm] r111896 - /llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp
Dan Gohman
gohman at apple.com
Mon Aug 23 19:40:27 PDT 2010
Author: djg
Date: Mon Aug 23 21:40:27 2010
New Revision: 111896
URL: http://llvm.org/viewvc/llvm-project?rev=111896&view=rev
Log:
Add braces to fix dangling else.
Modified:
llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp
Modified: llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp?rev=111896&r1=111895&r2=111896&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp (original)
+++ llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp Mon Aug 23 21:40:27 2010
@@ -287,10 +287,10 @@
// 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);
}
More information about the llvm-commits
mailing list