diff --git a/llvm/lib/VMCore/Instructions.cpp b/llvm/lib/VMCore/Instructions.cpp index 929e1409281e..ea1008b37677 100644 --- a/llvm/lib/VMCore/Instructions.cpp +++ b/llvm/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/llvm/lib/VMCore/Verifier.cpp b/llvm/lib/VMCore/Verifier.cpp index 70c6a4c8e9aa..0814f69d01d1 100644 --- a/llvm/lib/VMCore/Verifier.cpp +++ b/llvm/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