[cfe-commits] r140013 - /cfe/trunk/lib/Sema/SemaDeclCXX.cpp

Richard Smith richard-llvm at metafoo.co.uk
Mon Sep 19 04:19:27 PDT 2011


Author: rsmith
Date: Mon Sep 19 06:19:27 2011
New Revision: 140013

URL: http://llvm.org/viewvc/llvm-project?rev=140013&view=rev
Log:
Remove function which is unused as of r139996. Thanks to David Blaikie for bringing this to my attention.

Modified:
    cfe/trunk/lib/Sema/SemaDeclCXX.cpp

Modified: cfe/trunk/lib/Sema/SemaDeclCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclCXX.cpp?rev=140013&r1=140012&r2=140013&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclCXX.cpp Mon Sep 19 06:19:27 2011
@@ -2333,19 +2333,6 @@
   return false;
 }
 
-/// \brief Determine whether the given indirect field declaration is somewhere
-/// within an anonymous union.
-static bool isWithinAnonymousUnion(IndirectFieldDecl *F) {
-  for (IndirectFieldDecl::chain_iterator C = F->chain_begin(), 
-                                      CEnd = F->chain_end();
-       C != CEnd; ++C)
-    if (CXXRecordDecl *Record = dyn_cast<CXXRecordDecl>((*C)->getDeclContext()))
-      if (Record->isUnion())
-        return true;
-        
-  return false;
-}
-
 bool Sema::SetCtorInitializers(CXXConstructorDecl *Constructor,
                                CXXCtorInitializer **Initializers,
                                unsigned NumInitializers,





More information about the cfe-commits mailing list