Make AssociativeOpt static.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51290 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman
2008-05-20 01:14:05 +00:00
parent ad2ef21c76
commit 76d402beb9

View File

@ -2212,7 +2212,7 @@ unsigned InstCombiner::ComputeNumSignBits(Value *V, unsigned Depth) const{
/// 'shouldApply' and 'apply' methods. /// 'shouldApply' and 'apply' methods.
/// ///
template<typename Functor> template<typename Functor>
Instruction *AssociativeOpt(BinaryOperator &Root, const Functor &F) { static Instruction *AssociativeOpt(BinaryOperator &Root, const Functor &F) {
unsigned Opcode = Root.getOpcode(); unsigned Opcode = Root.getOpcode();
Value *LHS = Root.getOperand(0); Value *LHS = Root.getOperand(0);