]> granicus.if.org Git - clang/commitdiff
The cache is working again; re-enable it.
authorEli Friedman <eli.friedman@gmail.com>
Tue, 27 May 2008 08:43:22 +0000 (08:43 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Tue, 27 May 2008 08:43:22 +0000 (08:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51587 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenModule.cpp

index f14a0858d3038c2856c9eabe5bcfee89595428ac..525c13fc96bb403c33e3a5b91a3ce203d823d78e 100644 (file)
@@ -187,10 +187,7 @@ llvm::Constant *CodeGenModule::GetAddrOfFunctionDecl(const FunctionDecl *D,
                                                      bool isDefinition) {
   // See if it is already in the map.  If so, just return it.
   llvm::Constant *&Entry = GlobalDeclMap[D];
-#if 0
-  // FIXME: The cache is currently broken!
   if (Entry) return Entry;
-#endif
 
   const llvm::Type *Ty = getTypes().ConvertType(D->getType());