Add fixme.

llvm-svn: 107697
This commit is contained in:
Devang Patel 2010-07-06 21:05:17 +00:00
parent 3139b75beb
commit 568037d823

View File

@ -133,6 +133,7 @@ static const Function *getFunctionForValue(Value *V) {
static const Function *assertLocalFunction(const MDNode *N) { static const Function *assertLocalFunction(const MDNode *N) {
if (!N->isFunctionLocal()) return 0; if (!N->isFunctionLocal()) return 0;
// FIXME: This does not handle cyclic function local metadata.
const Function *F = 0, *NewF = 0; const Function *F = 0, *NewF = 0;
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)) {