summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-08-24 02:40:27 +0000
committerDan Gohman <gohman@apple.com>2010-08-24 02:40:27 +0000
commit10215a12e847ff7902cc2df01c4cded5fe5816ff (patch)
tree3051f1f1b50ce553033f7dcc9698d3fce7d58058 /llvm/lib/Bitcode
parentc828c5465d9d4de8bfce25d9d46dc5235b8c7163 (diff)
downloadbcm5719-llvm-10215a12e847ff7902cc2df01c4cded5fe5816ff.tar.gz
bcm5719-llvm-10215a12e847ff7902cc2df01c4cded5fe5816ff.zip
Add braces to fix dangling else.
llvm-svn: 111896
Diffstat (limited to 'llvm/lib/Bitcode')
-rw-r--r--llvm/lib/Bitcode/Writer/ValueEnumerator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp b/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
index 69789c006a4..b0964d44536 100644
--- a/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
+++ b/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
@@ -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);
}
OpenPOWER on IntegriCloud