Skip to content

Commit 8c6e96d

Browse files
[clang][Dataflow] Fix unnecessary copy in initializeFieldsWithValues (NFC)
1 parent ebe77cc commit 8c6e96d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ void Environment::initializeFieldsWithValues(RecordStorageLocation &Loc,
939939
}
940940
};
941941

942-
for (const auto [Field, FieldLoc] : Loc.children()) {
942+
for (const auto &[Field, FieldLoc] : Loc.children()) {
943943
assert(Field != nullptr);
944944
QualType FieldType = Field->getType();
945945

0 commit comments

Comments
 (0)