diff options
author | Chris Lattner <sabre@nondot.org> | 2003-11-21 17:06:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-11-21 17:06:29 +0000 |
commit | 7334f2e3daf011cb187dd46067a2cdbfd8f8133e (patch) | |
tree | a92ba491e67778597a03c896f147f917f8bd7482 | |
parent | 108e4ab159b59a616b0868e396dc7ddc1fb48616 (diff) |
improve error message
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10128 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/Verifier.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index e03cb17d75..b7173e4e90 100644 --- a/lib/VMCore/Verifier.cpp +++ b/lib/VMCore/Verifier.cpp @@ -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); } |