summaryrefslogtreecommitdiff
path: root/lib/Target
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-04-12 21:57:15 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-04-12 21:57:15 +0000
commit57c5b1815d764139d094b8525e4472819199f10f (patch)
tree93ee2b05c5b16c22d6b6003ea4d37cbd71d09871 /lib/Target
parentdf41353497b7b561649303a6a8bf23a7cb995f5a (diff)
downloadllvm-57c5b1815d764139d094b8525e4472819199f10f.tar.gz
llvm-57c5b1815d764139d094b8525e4472819199f10f.tar.bz2
llvm-57c5b1815d764139d094b8525e4472819199f10f.tar.xz
Implement review feedback .. don't double search a set.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35957 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/CBackend/CBackend.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp
index 8f053a6da3..91b5557695 100644
--- a/lib/Target/CBackend/CBackend.cpp
+++ b/lib/Target/CBackend/CBackend.cpp
@@ -45,7 +45,6 @@
#include "llvm/Config/config.h"
#include <algorithm>
#include <sstream>
-// #include <set>
using namespace llvm;
namespace {
@@ -2430,11 +2429,10 @@ void CWriter::lowerIntrinsics(Function &F) {
std::vector<Function*>::iterator I = prototypesToGen.begin();
std::vector<Function*>::iterator E = prototypesToGen.end();
for ( ; I != E; ++I) {
- if (intrinsicPrototypesAlreadyGenerated.count(*I) == 0) {
+ if (intrinsicPrototypesAlreadyGenerated.insert(*I).second) {
Out << '\n';
printFunctionSignature(*I, true);
Out << ";\n";
- intrinsicPrototypesAlreadyGenerated.insert(*I);
}
}
}