1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

Examine the type code in the setcc class of instructions and if it

is a PackedType, throw an error. Temporary solution.

Patch contributed by Brad Jones.

llvm-svn: 15963
This commit is contained in:
Reid Spencer 2004-08-21 16:11:02 +00:00
parent dd700ce5e4
commit fdbcdb732f

View File

@ -1934,6 +1934,10 @@ InstVal : ArithmeticOps Types ValueRef ',' ValueRef {
delete $2;
}
| SetCondOps Types ValueRef ',' ValueRef {
if(isa<PackedType>((*$2).get())) {
ThrowException(
"PackedTypes currently not supported in setcc instructions!");
}
$$ = new SetCondInst($1, getVal(*$2, $3), getVal(*$2, $5));
if ($$ == 0)
ThrowException("binary operator returned null!");