llvm.org GIT mirror llvm / bfcc380
add a missing check git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36859 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 12 years ago
1 changed file(s) with 1 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
690690 V = UndefValue::get(CurTy); // Unknown cast.
691691 } else {
692692 const Type *OpTy = getTypeByID(Record[1]);
693 if (!OpTy) return Error("Invalid CE_CAST record");
693694 Constant *Op = ValueList.getConstantFwdRef(Record[2], OpTy);
694695 V = ConstantExpr::getCast(Opc, Op, CurTy);
695696 }