diff options
Diffstat (limited to 'llvm/lib/Analysis/InlineCost.cpp')
-rw-r--r-- | llvm/lib/Analysis/InlineCost.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/InlineCost.cpp b/llvm/lib/Analysis/InlineCost.cpp index 37aa729552b..3754e923ceb 100644 --- a/llvm/lib/Analysis/InlineCost.cpp +++ b/llvm/lib/Analysis/InlineCost.cpp @@ -435,7 +435,7 @@ void InlineCostAnalyzer::FunctionInfo::countCodeReductionForPointerPair( if (ArgIt == PointerArgs.end()) continue; std::pair<unsigned, unsigned> ArgPair(ArgIt->second, ArgIdx); - if (ArgIt->second > ArgIdx) + if (ArgPair.first > ArgPair.second) std::swap(ArgPair.first, ArgPair.second); PointerArgPairWeights[ArgPair] |