Skip to content

Commit

Permalink
Bad formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
llvm-beanz committed Oct 6, 2023
1 parent 18c725f commit 4ef7b06
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/clang/lib/Sema/SemaExpr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10875,8 +10875,7 @@ ExprResult Sema::BuildBinOp(Scope *S, SourceLocation OpLoc,
// if-statement condition does not perfectly checks all the cases, but it
// simply checks whether it is a user-defined type with operator overloading
// methods or not.
if (getLangOpts().CPlusPlus &&
(!getLangOpts().HLSL || getLangOpts().HLSLVersion >= hlsl::LangStd::v2021) &&
if (getLangOpts().CPlusPlus && (!getLangOpts().HLSL || getLangOpts().HLSLVersion >= hlsl::LangStd::v2021) &&
hlsl::IsUserDefinedRecordType(LHSExpr->getType()) &&
hlsl::DoesTypeDefineOverloadedOperator(
LHSExpr->getType(), clang::BinaryOperator::getOverloadedOperator(Opc),
Expand Down

0 comments on commit 4ef7b06

Please sign in to comment.