Fix gcc warning.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91715 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eli Friedman 2009-12-18 21:07:18 +00:00
parent 1cefd7cd07
commit 3eed182e2d

View File

@ -173,12 +173,13 @@ bool MDNode::getLocalFunction(Function *LocalFunction,
// different function.
return false;
if (LocalFunctionTemp)
if (LocalFunctionTemp) {
if (!LocalFunction)
LocalFunction = LocalFunctionTemp;
else if (LocalFunction != LocalFunctionTemp)
// This MDNode contains operands that are local to different functions.
return false;
}
}
return true;