diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-04-17 21:24:55 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-04-17 21:24:55 +0000 |
commit | c459a0ff81398aa30b70c09503d0d3f61bc53350 (patch) | |
tree | 44f4489d373264cf817fa0040d6c26e91f36b4af /llvm/lib/AsmParser/LLParser.cpp | |
parent | d4c0f86a5e598c1985c0ef865489e1db9dfa75a7 (diff) | |
download | bcm5719-llvm-c459a0ff81398aa30b70c09503d0d3f61bc53350.tar.gz bcm5719-llvm-c459a0ff81398aa30b70c09503d0d3f61bc53350.zip |
Revert "reject forward references to functions whose type don't match", because DJG told me to!
llvm-svn: 101675
Diffstat (limited to 'llvm/lib/AsmParser/LLParser.cpp')
-rw-r--r-- | llvm/lib/AsmParser/LLParser.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp index aa887d21777..fe8e9c7f07d 100644 --- a/llvm/lib/AsmParser/LLParser.cpp +++ b/llvm/lib/AsmParser/LLParser.cpp @@ -2787,10 +2787,6 @@ bool LLParser::ParseFunctionHeader(Function *&Fn, bool isDefine) { ForwardRefVals.find(FunctionName); if (FRVI != ForwardRefVals.end()) { Fn = M->getFunction(FunctionName); - if (Fn->getType() != PFT) - return Error(FRVI->second.second, "invalid forward reference to " - "function '" + FunctionName + "' with wrong type!"); - ForwardRefVals.erase(FRVI); } else if ((Fn = M->getFunction(FunctionName))) { // If this function already exists in the symbol table, then it is |