Skip to content

Commit 6d7de46

Browse files
committed
[clang][Interp][NFC] Make Record field pointers const
1 parent 442f066 commit 6d7de46

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/AST/Interp/Record.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ class Record final {
8080

8181
unsigned getNumFields() const { return Fields.size(); }
8282
const Field *getField(unsigned I) const { return &Fields[I]; }
83-
Field *getField(unsigned I) { return &Fields[I]; }
8483

8584
using const_base_iter = BaseList::const_iterator;
8685
llvm::iterator_range<const_base_iter> bases() const {
@@ -122,7 +121,7 @@ class Record final {
122121
/// Mapping from declarations to bases.
123122
llvm::DenseMap<const RecordDecl *, Base *> BaseMap;
124123
/// Mapping from field identifiers to descriptors.
125-
llvm::DenseMap<const FieldDecl *, Field *> FieldMap;
124+
llvm::DenseMap<const FieldDecl *, const Field *> FieldMap;
126125
/// Mapping from declarations to virtual bases.
127126
llvm::DenseMap<const RecordDecl *, Base *> VirtualBaseMap;
128127
/// Size of the structure.

0 commit comments

Comments
 (0)