1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Fix operand type conditions in one of ICmpInst constructors.

It was out of sync with the conditions in the other two constructors.

llvm-svn: 172535
This commit is contained in:
Evgeniy Stepanov 2013-01-15 15:30:33 +00:00
parent af8f3454c8
commit a263f1e883

View File

@ -953,7 +953,7 @@ public:
"Both operands to ICmp instruction are not of the same type!");
// Check that the operands are the right type
assert((getOperand(0)->getType()->isIntOrIntVectorTy() ||
getOperand(0)->getType()->isPointerTy()) &&
getOperand(0)->getType()->getScalarType()->isPointerTy()) &&
"Invalid operand types for ICmp instruction");
}