From: Chris Lattner Date: Mon, 12 Jan 2004 20:40:42 +0000 (+0000) Subject: Eliminate ConstantFoldShiftInstruction reference X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=d4403b4c3a399ab124fe071cde4bedf41c6aa4d0;p=oota-llvm.git Eliminate ConstantFoldShiftInstruction reference git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10801 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp index 0e30c3ee587..c1aa39db1c1 100644 --- a/lib/VMCore/Constants.cpp +++ b/lib/VMCore/Constants.cpp @@ -961,7 +961,7 @@ Constant *ConstantExpr::getShiftTy(const Type *ReqTy, unsigned Opcode, assert(C1->getType()->isIntegral() && C2->getType() == Type::UByteTy && "Invalid operand types for Shift constant expr!"); - if (Constant *FC = ConstantFoldShiftInstruction(Opcode, C1, C2)) + if (Constant *FC = ConstantFoldBinaryInstruction(Opcode, C1, C2)) return FC; // Fold a few common cases... // Look up the constant in the table first to ensure uniqueness