Skip to content

Commit 7fb81ea

Browse files
committed
[Gardening] Const-qualify CompilerInstance::getInvocation()
1 parent db3e9fc commit 7fb81ea

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

include/swift/Frontend/Frontend.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -555,9 +555,7 @@ class CompilerInstance {
555555
/// Returns true if there was an error during setup.
556556
bool setup(const CompilerInvocation &Invocation);
557557

558-
const CompilerInvocation &getInvocation() {
559-
return Invocation;
560-
}
558+
const CompilerInvocation &getInvocation() const { return Invocation; }
561559

562560
/// If a code completion buffer has been set, returns the corresponding source
563561
/// file.

0 commit comments

Comments
 (0)