Revert "[Clang] Fix -Wconstant-logical-operand when LHS is a constant"
authorShivam Gupta <shivam98.tkg@gmail.com>
Tue, 8 Aug 2023 01:50:36 +0000 (07:20 +0530)
committerTobias Hieta <tobias@hieta.se>
Wed, 9 Aug 2023 06:58:21 +0000 (08:58 +0200)
commita93ca35a44948ce2376c5940c40e7e01a502696f
tree11137762898faca861cc6bfd2ffe9a86d8c7c2cd
parent6bff1eb9b0994ce2152c2f0a9f7ea62f18b0204b
Revert "[Clang] Fix -Wconstant-logical-operand when LHS is a constant"

This reverts commit dfdfd306cfaf54fbc43e2d5eb36489dac3eb9976.

An issue is reported for wrong warning, this has to be reconsidered.

Differential Revision: https://reviews.llvm.org/D157352
clang/include/clang/Sema/Sema.h
clang/lib/Sema/SemaExpr.cpp
clang/test/C/drs/dr4xx.c
clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p5.cpp
clang/test/Parser/cxx2a-concept-declaration.cpp
clang/test/Sema/exprs.c
clang/test/SemaCXX/expressions.cpp
clang/test/SemaCXX/warn-unsequenced.cpp
clang/test/SemaTemplate/dependent-expr.cpp