[cfe-commits] r148765 - /cfe/trunk/lib/AST/DeclCXX.cpp
Argyrios Kyrtzidis
akyrtzi at gmail.com
Mon Jan 23 17:37:11 PST 2012
Author: akirtzidis
Date: Mon Jan 23 19:37:11 2012
New Revision: 148765
URL: http://llvm.org/viewvc/llvm-project?rev=148765&view=rev
Log:
In CXXRecordDecl::isCLike(), also check for PODness.
Modified:
cfe/trunk/lib/AST/DeclCXX.cpp
Modified: cfe/trunk/lib/AST/DeclCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/DeclCXX.cpp?rev=148765&r1=148764&r2=148765&view=diff
==============================================================================
--- cfe/trunk/lib/AST/DeclCXX.cpp (original)
+++ cfe/trunk/lib/AST/DeclCXX.cpp Mon Jan 23 19:37:11 2012
@@ -967,7 +967,8 @@
if (!hasDefinition())
return true;
- return data().HasOnlyFields &&
+ return isPOD() &&
+ data().HasOnlyFields &&
!data().HasPrivateFields &&
!data().HasProtectedFields &&
!data().NumBases;
More information about the cfe-commits
mailing list