aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Scalar/InstructionCombining.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-07-07 17:46:23 +0000
committerDan Gohman <gohman@apple.com>2008-07-07 17:46:23 +0000
commit55d1966e9afdeeb33e7611bc0ac9b4b4268d68d3 (patch)
treeb8faef7c8acf95d5347e03581556fa77218d78a8 /lib/Transforms/Scalar/InstructionCombining.cpp
parentc315d58dcbdea638a42c5f939001c20b75b72b81 (diff)
downloadexternal_llvm-55d1966e9afdeeb33e7611bc0ac9b4b4268d68d3.zip
external_llvm-55d1966e9afdeeb33e7611bc0ac9b4b4268d68d3.tar.gz
external_llvm-55d1966e9afdeeb33e7611bc0ac9b4b4268d68d3.tar.bz2
Make DenseMap's insert return a pair, to more closely resemble std::map.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53177 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/InstructionCombining.cpp')
-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 8c3f2d5..8bc9091 100644
--- a/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -85,7 +85,7 @@ namespace {
/// AddToWorkList - Add the specified instruction to the worklist if it
/// isn't already in it.
void AddToWorkList(Instruction *I) {
- if (WorklistMap.insert(std::make_pair(I, Worklist.size())))
+ if (WorklistMap.insert(std::make_pair(I, Worklist.size())).second)
Worklist.push_back(I);
}