[cfe-commits] r127285 - /cfe/trunk/lib/Sema/SemaType.cpp

Abramo Bagnara abramo.bagnara at gmail.com
Tue Mar 8 14:33:38 PST 2011


Author: abramo
Date: Tue Mar  8 16:33:38 2011
New Revision: 127285

URL: http://llvm.org/viewvc/llvm-project?rev=127285&view=rev
Log:
Fixed isEmbeddedInDeclarator flag loading.

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

Modified: cfe/trunk/lib/Sema/SemaType.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaType.cpp?rev=127285&r1=127284&r2=127285&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaType.cpp (original)
+++ cfe/trunk/lib/Sema/SemaType.cpp Tue Mar  8 16:33:38 2011
@@ -1503,10 +1503,8 @@
     
     if (!D.isInvalidType() && D.getDeclSpec().isTypeSpecOwned()) {
       TagDecl* Owned = cast<TagDecl>(D.getDeclSpec().getRepAsDecl());
-      // Owned is embedded if it was defined here, or if it is the
-      // very first (i.e., canonical) declaration of this tag type.
-      Owned->setEmbeddedInDeclarator(Owned->isDefinition() ||
-                                     Owned->isCanonicalDecl());
+      // Owned declaration is embedded in declarator.
+      Owned->setEmbeddedInDeclarator(true);
       if (OwnedDecl) *OwnedDecl = Owned;
     }
     break;





More information about the cfe-commits mailing list