mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-06 20:32:19 +00:00
fix wordo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61728 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b0adcdb7e5
commit
0d8484f2ed
@ -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