Expand the coverage of the warning for constants on the RHS of logical operands:
return f() || -1; where the user meant to write '|'. This bootstraps without any additional warnings. Patch by Richard Trieu. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132327 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- lib/Sema/SemaExpr.cpp 8 additions, 6 deletionslib/Sema/SemaExpr.cpp
- test/CodeGenCXX/static-init-2.cpp 1 addition, 1 deletiontest/CodeGenCXX/static-init-2.cpp
- test/Sema/exprs.c 18 additions, 0 deletionstest/Sema/exprs.c
- test/SemaCXX/expressions.cpp 31 additions, 0 deletionstest/SemaCXX/expressions.cpp
- test/SemaCXX/switch.cpp 1 addition, 1 deletiontest/SemaCXX/switch.cpp
Loading
Please register or sign in to comment