Convert to storing the attribute's internals as enums, integers, and strings.
[oota-llvm.git] / include / llvm / IR / Instructions.h
index 84ae516552db68637d6662a482358dee789bf922..324a646bc13a6559df080afaae059338486ba303 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");
   }