mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-02 08:26:39 +00:00
More dead code removal (using -Wunreachable-code)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148578 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -163,12 +163,13 @@ static const Function *assertLocalFunction(const MDNode *N) {
|
||||
const Function *MDNode::getFunction() const {
|
||||
#ifndef NDEBUG
|
||||
return assertLocalFunction(this);
|
||||
#endif
|
||||
#else
|
||||
if (!isFunctionLocal()) return NULL;
|
||||
for (unsigned i = 0, e = getNumOperands(); i != e; ++i)
|
||||
if (const Function *F = getFunctionForValue(getOperand(i)))
|
||||
return F;
|
||||
return NULL;
|
||||
#endif
|
||||
}
|
||||
|
||||
// destroy - Delete this node. Only when there are no uses.
|
||||
|
Reference in New Issue
Block a user