mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
diagnose PR3281:crash02.ll with:
llvm-as: crash02.ll:1:62: invalid function return type declare { <{ <{}>, void ([1898 x { void ()* }], opaque, ...) (), fp128 * }>, opaque } @t () ^ git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61679 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
99bb315f32
commit
d77d04c323
@ -1136,6 +1136,9 @@ bool LLParser::ParseArgumentList(std::vector<ArgInfo> &ArgList,
|
||||
bool LLParser::ParseFunctionType(PATypeHolder &Result) {
|
||||
assert(Lex.getKind() == lltok::lparen);
|
||||
|
||||
if (!FunctionType::isValidReturnType(Result))
|
||||
return TokError("invalid function return type");
|
||||
|
||||
std::vector<ArgInfo> ArgList;
|
||||
bool isVarArg;
|
||||
unsigned Attrs;
|
||||
|
Loading…
Reference in New Issue
Block a user