Skip to content

Commit ca44a67

Browse files
authored
[Frontend] NFC: fix compiler warning
``` [218/807] Building CXX object lib/Frontend/CMakeFiles/swiftFrontend.dir/CompilerInvocation.cpp.o /home/egorzh/swift/swift/lib/Frontend/CompilerInvocation.cpp:804:28: warning: use of bitwise '|' with boolean operands [-Wbitwise-instead-of-logical] Opts.EnableCXXInterop |= Args.hasArg(OPT_enable_experimental_cxx_interop) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ || /home/egorzh/swift/swift/lib/Frontend/CompilerInvocation.cpp:804:28: note: cast one or both operands to int to silence this warning ```
1 parent 54e82a0 commit ca44a67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Frontend/CompilerInvocation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
801801
Opts.ClangTarget = llvm::Triple(A->getValue());
802802
}
803803

804-
Opts.EnableCXXInterop |= Args.hasArg(OPT_enable_experimental_cxx_interop) |
804+
Opts.EnableCXXInterop |= Args.hasArg(OPT_enable_experimental_cxx_interop) ||
805805
Args.hasArg(OPT_enable_cxx_interop);
806806
Opts.EnableObjCInterop =
807807
Args.hasFlag(OPT_enable_objc_interop, OPT_disable_objc_interop,

0 commit comments

Comments
 (0)