X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FVMCore%2FConstantFold.h;h=546b37e605fc1cd74550e7feb59cd6d700106f74;hb=61b91bc156bb9e3d9017a9e93d567f8dccfa3f68;hp=cd10f9d0c87fb861f3a78201dfaac2543fc2a5e3;hpb=f4e3c006acae5ccdad021c93046f049cb3543368;p=oota-llvm.git diff --git a/lib/VMCore/ConstantFold.h b/lib/VMCore/ConstantFold.h index cd10f9d0c87..546b37e605f 100644 --- a/lib/VMCore/ConstantFold.h +++ b/lib/VMCore/ConstantFold.h @@ -169,12 +169,12 @@ inline Constant *operator^(const Constant &V1, const Constant &V2) { // Shift Instructions... inline Constant *operator<<(const Constant &V1, const Constant &V2) { - assert(V1.getType()->isIntegral() && V2.getType() == Type::UByteTy); + assert(V1.getType()->isInteger() && V2.getType() == Type::UByteTy); return ConstRules::get(V1)->shl(&V1, &V2); } inline Constant *operator>>(const Constant &V1, const Constant &V2) { - assert(V1.getType()->isIntegral() && V2.getType() == Type::UByteTy); + assert(V1.getType()->isInteger() && V2.getType() == Type::UByteTy); return ConstRules::get(V1)->shr(&V1, &V2); }