File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -329,7 +329,7 @@ Record *Program::getOrCreateRecord(const RecordDecl *RD) {
329
329
// Reserve space for fields.
330
330
Record::FieldList Fields;
331
331
for (const FieldDecl *FD : RD->fields ()) {
332
- assert ( FD == FD->getFirstDecl () );
332
+ FD = FD->getFirstDecl ();
333
333
// Note that we DO create fields and descriptors
334
334
// for unnamed bitfields here, even though we later ignore
335
335
// them everywhere. That's so the FieldDecl's getFieldIndex() matches.
Original file line number Diff line number Diff line change 6
6
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -x c++ -I%S/Inputs/merge-using-decls -verify %s -DORDER=2
7
7
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -x c++ -I%S/Inputs/merge-using-decls -verify -std=c++98 %s -DORDER=2
8
8
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -x c++ -I%S/Inputs/merge-using-decls -verify -std=c++11 %s -DORDER=2
9
- // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -x c++ -I%S/Inputs/merge-using-decls -verify -std=c++17 %s -DORDER=2
9
+
10
+ // RUN: %clang_cc1 -fexperimental-new-constant-interpreter -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -x c++ -I%S/Inputs/merge-using-decls -verify -std=c++17 %s -DORDER=2
10
11
11
12
#if ORDER == 1
12
13
#include " a.h"
You can’t perform that action at this time.
0 commit comments