diff --git a/tools/lto/lto.cpp b/tools/lto/lto.cpp index 05114b7f329..9dfc45676df 100644 --- a/tools/lto/lto.cpp +++ b/tools/lto/lto.cpp @@ -93,7 +93,7 @@ findExternalRefs(Value *value, std::set &references, if (lt != LTOInternalLinkage && strncmp (gv->getName().c_str(), "llvm.", 5)) references.insert(mangler.getValueName(gv)); } - else if (Constant *c = dyn_cast(value)) + if (Constant *c = dyn_cast(value)) // Handle ConstantExpr, ConstantStruct, ConstantArry etc.. for (unsigned i = 0, e = c->getNumOperands(); i != e; ++i) findExternalRefs(c->getOperand(i), references, mangler);