Skip to content

Commit 7a932f4

Browse files
committed
[Parser] ParseMicrosoftAsmStatement - Replace bit '|' operator with logical '||' operator. (PR47071)
Fixes static analysis warning.
1 parent 1425c72 commit 7a932f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Parse/ParseStmtAsm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ StmtResult Parser::ParseMicrosoftAsmStatement(SourceLocation AsmLoc) {
581581
std::unique_ptr<llvm::MCSubtargetInfo> STI(
582582
TheTarget->createMCSubtargetInfo(TT, TO.CPU, FeaturesStr));
583583
// Target MCTargetDesc may not be linked in clang-based tools.
584-
if (!MAI || !MII | !MOFI || !STI) {
584+
if (!MAI || !MII || !MOFI || !STI) {
585585
Diag(AsmLoc, diag::err_msasm_unable_to_create_target)
586586
<< "target MC unavailable";
587587
return EmptyStmt();

0 commit comments

Comments
 (0)