File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3314,7 +3314,7 @@ void generateIntelFPGAAnnotation(
3314
3314
Out << " {simple_dual_port:1}" ;
3315
3315
if (E->hasDecorate (DecorationMergeINTEL)) {
3316
3316
Out << " {merge" ;
3317
- for (auto Str : E->getDecorationStringLiteral (DecorationMergeINTEL))
3317
+ for (const auto & Str : E->getDecorationStringLiteral (DecorationMergeINTEL))
3318
3318
Out << " :" << Str;
3319
3319
Out << ' }' ;
3320
3320
}
@@ -3396,8 +3396,8 @@ void generateIntelFPGAAnnotationForStructMember(
3396
3396
Out << " {simple_dual_port:1}" ;
3397
3397
if (E->hasMemberDecorate (DecorationMergeINTEL, 0 , MemberNumber)) {
3398
3398
Out << " {merge" ;
3399
- for (auto Str : E->getMemberDecorationStringLiteral (DecorationMergeINTEL,
3400
- MemberNumber))
3399
+ for (const auto & Str : E->getMemberDecorationStringLiteral (
3400
+ DecorationMergeINTEL, MemberNumber))
3401
3401
Out << " :" << Str;
3402
3402
Out << ' }' ;
3403
3403
}
Original file line number Diff line number Diff line change @@ -1810,7 +1810,7 @@ class TopologicalSort {
1810
1810
for (auto *V : VariableVec)
1811
1811
EntryStateMap[V] = DFSState::Unvisited;
1812
1812
// Run topoligical sort
1813
- for (auto ES : EntryStateMap) {
1813
+ for (const auto & ES : EntryStateMap) {
1814
1814
if (visit (ES.first ))
1815
1815
llvm_unreachable (" Cyclic dependency for types detected" );
1816
1816
}
You can’t perform that action at this time.
0 commit comments