mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
Add braces to fix dangling else.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111896 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -287,10 +287,10 @@ void ValueEnumerator::EnumerateFunctionLocalMetadata(const MDNode *N) {
|
|||||||
// MDNodes and all function-local values they reference.
|
// MDNodes and all function-local values they reference.
|
||||||
for (unsigned i = 0, e = N->getNumOperands(); i != e; ++i)
|
for (unsigned i = 0, e = N->getNumOperands(); i != e; ++i)
|
||||||
if (Value *V = N->getOperand(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())
|
if (O->isFunctionLocal() && O->getFunction())
|
||||||
EnumerateFunctionLocalMetadata(O);
|
EnumerateFunctionLocalMetadata(O);
|
||||||
else if (isa<Instruction>(V) || isa<Argument>(V))
|
} else if (isa<Instruction>(V) || isa<Argument>(V))
|
||||||
EnumerateValue(V);
|
EnumerateValue(V);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user