diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-01-15 15:30:33 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-01-15 15:30:33 +0000 |
commit | e1c49906dcd26486ddac08207817d0e2ce4a2829 (patch) | |
tree | f349fa85fb6f05a5b7485960d0d164cc1373d7bb /include | |
parent | 08bcd5bc4d48018626bd381aa47791b60b24b174 (diff) | |
download | external_llvm-e1c49906dcd26486ddac08207817d0e2ce4a2829.zip external_llvm-e1c49906dcd26486ddac08207817d0e2ce4a2829.tar.gz external_llvm-e1c49906dcd26486ddac08207817d0e2ce4a2829.tar.bz2 |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/IR/Instructions.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/IR/Instructions.h b/include/llvm/IR/Instructions.h index 84ae516..324a646 100644 --- a/include/llvm/IR/Instructions.h +++ b/include/llvm/IR/Instructions.h @@ -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"); } |