aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-05-14 18:34:36 +0000
committerChris Lattner <sabre@nondot.org>2006-05-14 18:34:36 +0000
commitff8953ae6d417fb28b8eb2a5a212cb34eafa0e42 (patch)
tree3c5b06411f672a5aa13e8712424445a318bb0d81
parent36a169e1a37898f1ff53b1ffa299d023814db43d (diff)
remove dead var
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28287 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/VMCore/Instructions.cpp2
-rw-r--r--lib/VMCore/Verifier.cpp1
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/VMCore/Instructions.cpp b/lib/VMCore/Instructions.cpp
index 929e140928..ea1008b376 100644
--- a/lib/VMCore/Instructions.cpp
+++ b/lib/VMCore/Instructions.cpp
@@ -667,7 +667,7 @@ StoreInst::StoreInst(Value *val, Value *addr, bool isVolatile,
// message on bad indexes for a gep instruction.
//
static inline const Type *checkType(const Type *Ty) {
- assert(Ty && "Invalid indices for type!");
+ assert(Ty && "Invalid GetElementPtrInst indices for type!");
return Ty;
}
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp
index 70c6a4c8e9..0814f69d01 100644
--- a/lib/VMCore/Verifier.cpp
+++ b/lib/VMCore/Verifier.cpp
@@ -693,7 +693,6 @@ void Verifier::visitInstruction(Instruction &I) {
///
void Verifier::visitIntrinsicFunctionCall(Intrinsic::ID ID, CallInst &CI) {
Function *IF = CI.getCalledFunction();
- const FunctionType *FTy = IF->getFunctionType();
Assert1(IF->isExternal(), "Intrinsic functions should never be defined!", IF);
#define GET_INTRINSIC_VERIFIER