Skip to content

Commit 71bf35d

Browse files
tbaederrlravenclaw
authored andcommitted
[clang][Interp][NFC] Make a local pointer const
1 parent 891a0cc commit 71bf35d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/AST/Interp/Compiler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4039,7 +4039,7 @@ bool Compiler<Emitter>::visitCompoundStmt(const CompoundStmt *S) {
40394039

40404040
template <class Emitter>
40414041
bool Compiler<Emitter>::visitDeclStmt(const DeclStmt *DS) {
4042-
for (auto *D : DS->decls()) {
4042+
for (const auto *D : DS->decls()) {
40434043
if (isa<StaticAssertDecl, TagDecl, TypedefNameDecl, UsingEnumDecl,
40444044
FunctionDecl>(D))
40454045
continue;

0 commit comments

Comments
 (0)