[cfe-commits] r43530 - /cfe/trunk/CodeGen/CodeGenTypes.cpp
Devang Patel
dpatel at apple.com
Tue Oct 30 16:22:14 PDT 2007
Author: dpatel
Date: Tue Oct 30 18:22:14 2007
New Revision: 43530
URL: http://llvm.org/viewvc/llvm-project?rev=43530&view=rev
Log:
Avoid unnecessary PATypeHolder copy.
Modified:
cfe/trunk/CodeGen/CodeGenTypes.cpp
Modified: cfe/trunk/CodeGen/CodeGenTypes.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CodeGen/CodeGenTypes.cpp?rev=43530&r1=43529&r2=43530&view=diff
==============================================================================
--- cfe/trunk/CodeGen/CodeGenTypes.cpp (original)
+++ cfe/trunk/CodeGen/CodeGenTypes.cpp Tue Oct 30 18:22:14 2007
@@ -77,10 +77,8 @@
// See if type is already cached.
llvm::DenseMap<Type *, llvm::PATypeHolder>::iterator
I = TypeHolderMap.find(T.getTypePtr());
- if (I != TypeHolderMap.end()) {
- llvm::PATypeHolder PAT = I->second;
- return PAT.get();
- }
+ if (I != TypeHolderMap.end())
+ return I->second.get();
const llvm::Type *ResultType = ConvertNewType(T);
TypeHolderMap.insert(std::make_pair(T.getTypePtr(),
More information about the cfe-commits
mailing list