summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-05-20 01:14:05 +0000
committerDan Gohman <gohman@apple.com>2008-05-20 01:14:05 +0000
commitd717761a2b0d41e260940a75f8b3097402d0b498 (patch)
treeb4844fb4408c9360b267a87dd6b23d7ea805b2af
parentcd2e772d0815f3fbe56c0f3d283a4045ba4c1f25 (diff)
downloadbcm5719-llvm-d717761a2b0d41e260940a75f8b3097402d0b498.tar.gz
bcm5719-llvm-d717761a2b0d41e260940a75f8b3097402d0b498.zip
Make AssociativeOpt static.
llvm-svn: 51290
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
index 41e528a5a5a..82d9fa87432 100644
--- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -2212,7 +2212,7 @@ unsigned InstCombiner::ComputeNumSignBits(Value *V, unsigned Depth) const{
/// 'shouldApply' and 'apply' methods.
///
template<typename Functor>
-Instruction *AssociativeOpt(BinaryOperator &Root, const Functor &F) {
+static Instruction *AssociativeOpt(BinaryOperator &Root, const Functor &F) {
unsigned Opcode = Root.getOpcode();
Value *LHS = Root.getOperand(0);
OpenPOWER on IntegriCloud