mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-02 00:36:36 +00:00
Fix operand type conditions in one of ICmpInst constructors.
It was out of sync with the conditions in the other two constructors. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172535 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
08bcd5bc4d
commit
e1c49906dc
@ -953,7 +953,7 @@ public:
|
|||||||
"Both operands to ICmp instruction are not of the same type!");
|
"Both operands to ICmp instruction are not of the same type!");
|
||||||
// Check that the operands are the right type
|
// Check that the operands are the right type
|
||||||
assert((getOperand(0)->getType()->isIntOrIntVectorTy() ||
|
assert((getOperand(0)->getType()->isIntOrIntVectorTy() ||
|
||||||
getOperand(0)->getType()->isPointerTy()) &&
|
getOperand(0)->getType()->getScalarType()->isPointerTy()) &&
|
||||||
"Invalid operand types for ICmp instruction");
|
"Invalid operand types for ICmp instruction");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user