Add braces to fix dangling else.

llvm-svn: 111896
This commit is contained in:
Dan Gohman 2010-08-24 02:40:27 +00:00
parent c828c5465d
commit 10215a12e8
1 changed files with 2 additions and 2 deletions

View 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);
}