Fix operand type conditions in one of ICmpInst constructors.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Tue, 15 Jan 2013 15:30:33 +0000 (15:30 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Tue, 15 Jan 2013 15:30:33 +0000 (15:30 +0000)
It was out of sync with the conditions in the other two constructors.

llvm-svn: 172535

llvm/include/llvm/IR/Instructions.h

index 84ae516..324a646 100644 (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");
   }