Skip to content

Commit dd4fea1

Browse files
committed
Fix ParameterTypeFlags::withCompileTimeConst() bit manipulation
1 parent b0ed490 commit dd4fea1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/AST/Types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2020,7 +2020,7 @@ class ParameterTypeFlags {
20202020

20212021
ParameterTypeFlags withCompileTimeConst(bool isConst) const {
20222022
return ParameterTypeFlags(isConst ? value | ParameterTypeFlags::CompileTimeConst
2023-
: value | ParameterTypeFlags::CompileTimeConst);
2023+
: value - ParameterTypeFlags::CompileTimeConst);
20242024
}
20252025

20262026
ParameterTypeFlags withShared(bool isShared) const {

0 commit comments

Comments
 (0)