diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp index 2efd221fa33..80a4fca769b 100644 --- a/lib/AsmParser/LLParser.cpp +++ b/lib/AsmParser/LLParser.cpp @@ -605,7 +605,7 @@ GlobalValue *LLParser::GetGlobalVal(unsigned ID, const Type *Ty, LocTy Loc) { if (const FunctionType *FT = dyn_cast(PTy->getElementType())) { // Function types can return opaque but functions can't. if (isa(FT->getReturnType())) { - Error(Loc, "function may not return return opaque type"); + Error(Loc, "function may not return opaque type"); return 0; } FwdVal = Function::Create(FT, GlobalValue::ExternalWeakLinkage, "", M);