Skip to content

Commit 0494f93

Browse files
[Basic] Drop const from a return type (NFC) (llvm#146382)
We don't need const on a return type.
1 parent 6a83a84 commit 0494f93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/include/clang/Basic/TargetInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1851,7 +1851,7 @@ class TargetInfo : public TransferrableTargetInfo,
18511851

18521852
/// Returns the version of the darwin target variant SDK which was used during
18531853
/// the compilation if one was specified, or an empty version otherwise.
1854-
const std::optional<VersionTuple> getDarwinTargetVariantSDKVersion() const {
1854+
std::optional<VersionTuple> getDarwinTargetVariantSDKVersion() const {
18551855
return !getTargetOpts().DarwinTargetVariantSDKVersion.empty()
18561856
? getTargetOpts().DarwinTargetVariantSDKVersion
18571857
: std::optional<VersionTuple>();

0 commit comments

Comments
 (0)