commit | 6b345ee9b2833cf1b2f79dc16d06d4060bec36ef | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Mon Jul 07 17:46:23 2008 +0000 |
committer | Dan Gohman <gohman@apple.com> | Mon Jul 07 17:46:23 2008 +0000 |
tree | b8faef7c8acf95d5347e03581556fa77218d78a8 | |
parent | aa5044d3ce80a2759a6084911db77dec385a47fc [diff] [blame] |
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
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 @@ /// 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); }