Skip to content

Commit 43a0982

Browse files
committed
Fix ParameterTypeFlags::withCompileTimeConst() bit manipulation
1 parent c12e31f commit 43a0982

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
@@ -1996,7 +1996,7 @@ class ParameterTypeFlags {
19961996

19971997
ParameterTypeFlags withCompileTimeConst(bool isConst) const {
19981998
return ParameterTypeFlags(isConst ? value | ParameterTypeFlags::CompileTimeConst
1999-
: value | ParameterTypeFlags::CompileTimeConst);
1999+
: value - ParameterTypeFlags::CompileTimeConst);
20002000
}
20012001

20022002
ParameterTypeFlags withShared(bool isShared) const {

0 commit comments

Comments
 (0)