improve error message
authorChris Lattner <sabre@nondot.org>
Fri, 21 Nov 2003 17:06:29 +0000 (17:06 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 21 Nov 2003 17:06:29 +0000 (17:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10128 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Verifier.cpp

index e03cb17d7588ad9c20c8f9ce6ad33eb7880c0836..b7173e4e905cddca45ba99e8258a4a5337ad8402 100644 (file)
@@ -438,7 +438,7 @@ void Verifier::visitLoadInst(LoadInst &LI) {
   const Type *ElTy =
     cast<PointerType>(LI.getOperand(0)->getType())->getElementType();
   Assert2(ElTy == LI.getType(),
-          "Load is not of right type for indices!", &LI, ElTy);
+          "Load result type does not match pointer operand type!", &LI, ElTy);
   visitInstruction(LI);
 }
 
@@ -446,7 +446,7 @@ void Verifier::visitStoreInst(StoreInst &SI) {
   const Type *ElTy =
     cast<PointerType>(SI.getOperand(1)->getType())->getElementType();
   Assert2(ElTy == SI.getOperand(0)->getType(),
-          "Stored value is not of right type for indices!", &SI, ElTy);
+          "Stored value type does not match pointer operand type!", &SI, ElTy);
   visitInstruction(SI);
 }