diff options
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/AsmParser/LLParser.cpp | 4 | ||||
| -rw-r--r-- | llvm/test/Bitcode/memcpy.ll | 2 | 
2 files changed, 1 insertions, 5 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 diff --git a/llvm/test/Bitcode/memcpy.ll b/llvm/test/Bitcode/memcpy.ll index 299eb1ed41e..b6573b5f621 100644 --- a/llvm/test/Bitcode/memcpy.ll +++ b/llvm/test/Bitcode/memcpy.ll @@ -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)  | 

