mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 03:23:01 +02:00
fix wordo
llvm-svn: 61728
This commit is contained in:
parent
767201ceb7
commit
b01c512756
@ -605,7 +605,7 @@ GlobalValue *LLParser::GetGlobalVal(unsigned ID, const Type *Ty, LocTy Loc) {
|
||||
if (const FunctionType *FT = dyn_cast<FunctionType>(PTy->getElementType())) {
|
||||
// Function types can return opaque but functions can't.
|
||||
if (isa<OpaqueType>(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);
|
||||
|
Loading…
Reference in New Issue
Block a user