mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Use isa check instead of getTypeID() check.
llvm-svn: 47518
This commit is contained in:
parent
bf1814f91f
commit
56d28d9fe3
@ -1462,7 +1462,7 @@ ResultTypes
|
||||
: Types {
|
||||
if (!UpRefs.empty())
|
||||
GEN_ERROR("Invalid upreference in type: " + (*$1)->getDescription());
|
||||
if (!(*$1)->isFirstClassType() && (*$1)->getTypeID() != Type::StructTyID)
|
||||
if (!(*$1)->isFirstClassType() && !isa<StructType>($1->get()))
|
||||
GEN_ERROR("LLVM functions cannot return aggregate types");
|
||||
$$ = $1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user