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 | 8f15f6a55b632e03abf7b1f86cb91453d722ca72 (patch) | |
| tree | ea13fa2a787a1be010b1c98810453b683fd16094 /lib | |
| parent | 85f68b4384ec02ac6ac5342c1bff7e1414e6cc11 (diff) | |
| download | external_llvm-8f15f6a55b632e03abf7b1f86cb91453d722ca72.zip external_llvm-8f15f6a55b632e03abf7b1f86cb91453d722ca72.tar.gz external_llvm-8f15f6a55b632e03abf7b1f86cb91453d722ca72.tar.bz2 | |
Revert "reject forward references to functions whose type don't match", because DJG told me to!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101675 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/AsmParser/LLParser.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp index aa887d2..fe8e9c7 100644 --- a/lib/AsmParser/LLParser.cpp +++ b/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 |
