Skip to content

Commit 6bbbe4a

Browse files
committed
[flang][driver] Fix a small bug (auto vs auto&)
This bug hasn't affected us yet as our usage is too basic, i.e. we don't rely on the defaults provided by `SetDefaultFortranOpts` just yet. This will change shortly.
1 parent 15f2d4f commit 6bbbe4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/lib/Frontend/CompilerInvocation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ bool CompilerInvocation::CreateFromArgs(CompilerInvocation &res,
185185
}
186186

187187
void CompilerInvocation::SetDefaultFortranOpts() {
188-
auto fortranOptions = fortranOpts();
188+
auto &fortranOptions = fortranOpts();
189189

190190
// These defaults are based on the defaults in f18/f18.cpp.
191191
std::vector<std::string> searchDirectories{"."s};

0 commit comments

Comments
 (0)