aboutsummaryrefslogtreecommitdiffstats
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
commit76d402beb9bc5f63b3669132215b270487622c6f (patch)
treef4d68fdb6518d424083a8cbf93027445bbaaa2fa
parentad2ef21c7680f4cf666cf7452b2432deb454cf9f (diff)
downloadexternal_llvm-76d402beb9bc5f63b3669132215b270487622c6f.zip
external_llvm-76d402beb9bc5f63b3669132215b270487622c6f.tar.gz
external_llvm-76d402beb9bc5f63b3669132215b270487622c6f.tar.bz2
Make AssociativeOpt static.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51290 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Scalar/InstructionCombining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp
index 41e528a..82d9fa8 100644
--- a/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/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);