[cfe-commits] r75692 - /cfe/trunk/lib/AST/DeclCXX.cpp
Fariborz Jahanian
fjahanian at apple.com
Tue Jul 14 15:40:56 PDT 2009
Author: fjahanian
Date: Tue Jul 14 17:40:50 2009
New Revision: 75692
URL: http://llvm.org/viewvc/llvm-project?rev=75692&view=rev
Log:
Fixed a bug in building ctor-initializer AST.
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=75692&r1=75691&r2=75692&view=diff
==============================================================================
--- cfe/trunk/lib/AST/DeclCXX.cpp (original)
+++ cfe/trunk/lib/AST/DeclCXX.cpp Tue Jul 14 17:40:50 2009
@@ -496,7 +496,7 @@
for (i = 0; i < NumInitializers; i++) {
CXXBaseOrMemberInitializer *Member = Initializers[i];
if (Member->isBaseInitializer() &&
- Member->getBaseClass() == T) {
+ Member->getBaseClass()->getAsRecordType() == T) {
AllToInit.push_back(Member);
break;
}
@@ -517,7 +517,8 @@
unsigned int i = 0;
for (i = 0; i < NumInitializers; i++) {
CXXBaseOrMemberInitializer *Member = Initializers[i];
- if (Member->isBaseInitializer() && Member->getBaseClass() == T) {
+ if (Member->isBaseInitializer() &&
+ Member->getBaseClass()->getAsRecordType() == T) {
AllToInit.push_back(Member);
break;
}
More information about the cfe-commits
mailing list