mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-23 11:04:49 +00:00
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
This commit is contained in:
parent
8e13af309b
commit
dd3a87912b
@ -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
|
||||
|
@ -20,4 +20,4 @@ declare void @llvm.memset.i32(i8*, i8, i32, i32)
|
||||
|
||||
declare void @llvm.memmove.i32(i8*, i8*, i32, i32)
|
||||
|
||||
declare void @llvm.memmove.i64(i8*, i8*, i64, i32)
|
||||
declare void @llvm.memmove.i64(i8*, i8*, i32, i32)
|
||||
|
Loading…
x
Reference in New Issue
Block a user