[Clang] Fix -Wconstant-logical-operand when LHS is a constant
This fix PR37919 The below code produces -Wconstant-logical-operand for the first statement, but not the second. void foo(int x) { if (x && 5) {} if (5 && x) {} } Reviewed By: nickdesaulniers Differential Revision: https://reviews.llvm.org/D142609
Loading
Please sign in to comment