mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-26 07:34:14 +00:00
Use isa check instead of getTypeID() check.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47518 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
57daefa187
commit
155b8746ba
@ -1462,7 +1462,7 @@ ResultTypes
|
|||||||
: Types {
|
: Types {
|
||||||
if (!UpRefs.empty())
|
if (!UpRefs.empty())
|
||||||
GEN_ERROR("Invalid upreference in type: " + (*$1)->getDescription());
|
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");
|
GEN_ERROR("LLVM functions cannot return aggregate types");
|
||||||
$$ = $1;
|
$$ = $1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user