llvm-project/clang/test
Aaron Ballman ab2ca8496d consteval if does not form a discarded statement
When we added support for if consteval, we accidentally formed a discarded
statement evaluation context for the branch-not-taken. However, a discarded
statement is a property of an if constexpr statement, not an if consteval
statement (https://eel.is/c++draft/stmt.if#2.sentence-2). This turned out to
cause issues when deducing the return type from a function with a consteval if
statement -- we wouldn't consider the branch-not-taken when deducing the return
type.

This fixes PR52206.

Note, there is additional work left to be done. We need to track discarded
statement and immediate evaluation contexts separately rather than as being
mutually exclusive.
2021-10-20 07:24:55 -04:00
..
APINotes
ARCMT Revert "Compress formatting of array type names (int [4] -> int[4])" 2021-10-14 14:49:25 -07:00
AST [AIX] Enable int128 in 64 bit mode 2021-10-15 16:23:04 +00:00
ASTMerge Revert "Compress formatting of array type names (int [4] -> int[4])" 2021-10-14 14:49:25 -07:00
Analysis [AIX] Enable int128 in 64 bit mode 2021-10-15 16:23:04 +00:00
CXX Revert D105169 due to the two-stage failure in ASAN 2021-10-18 23:52:46 +09:00
ClangScanDeps [clang][modules] Cache loads of modules imported by PCH 2021-10-13 18:09:52 +02:00
CodeCompletion Diagnose -Wunused-value based on CFG reachability 2021-09-28 10:00:15 -07:00
CodeGen [WebAssembly] Implementation of table.get/set for reftypes in LLVM IR 2021-10-20 10:31:31 +02:00
CodeGenCUDA [HIP] [AlwaysInliner] Disable AlwaysInliner to eliminate undefined symbols 2021-10-18 16:53:15 -06:00
CodeGenCXX [test] Remove tests pinned to the legacy PM 2021-10-18 16:40:46 -07:00
CodeGenCoroutines Revert D105169 due to the two-stage failure in ASAN 2021-10-18 23:52:46 +09:00
CodeGenHIP
CodeGenObjC Revert D105169 due to the two-stage failure in ASAN 2021-10-18 23:52:46 +09:00
CodeGenObjCXX Revert D105169 due to the two-stage failure in ASAN 2021-10-18 23:52:46 +09:00
CodeGenOpenCL [test] Remove tests pinned to the legacy PM 2021-10-18 16:40:46 -07:00
CodeGenOpenCLCXX Revert D105169 due to the two-stage failure in ASAN 2021-10-18 23:52:46 +09:00
CodeGenSYCL Revert D105169 due to the two-stage failure in ASAN 2021-10-18 23:52:46 +09:00
Coverage
CoverageMapping Revert "[Coroutines] [Clang] Look up coroutine component in std namespace first" 2021-09-03 16:01:09 -04:00
Driver [clang][Driver] Make multiarch output file basenames reproducible 2021-10-19 13:49:47 -07:00
FixIt Implement P1949 2021-08-18 07:33:14 -04:00
Format
Frontend [test] Remove tests pinned to the legacy PM 2021-10-18 16:40:46 -07:00
Headers Revert D105169 due to the two-stage failure in ASAN 2021-10-18 23:52:46 +09:00
Import Revert "Compress formatting of array type names (int [4] -> int[4])" 2021-10-14 14:49:25 -07:00
Index Revert "Compress formatting of array type names (int [4] -> int[4])" 2021-10-14 14:49:25 -07:00
Integration
InterfaceStubs
Interpreter Reland "[clang-repl] Allow loading of plugins in clang-repl." 2021-10-05 13:04:01 +00:00
Layout Revert "Compress formatting of array type names (int [4] -> int[4])" 2021-10-14 14:49:25 -07:00
Lexer Implement #pragma clang final extension 2021-09-27 14:11:16 -05:00
LibClang libclang.so: Make SONAME independent from LLVM version 2021-07-26 16:37:26 -07:00
Misc [clang] Add option to disable -clear-ast-before-backend 2021-10-19 20:51:48 -07:00
Modules Revert D105169 due to the two-stage failure in ASAN 2021-10-18 23:52:46 +09:00
OpenMP Revert D105169 due to the two-stage failure in ASAN 2021-10-18 23:52:46 +09:00
PCH [WebAssembly] Emit clangast in custom section aligned by 4 bytes 2021-10-19 15:50:08 -07:00
Parser [Parse] Improve diagnostic and recovery when there is an extra override in the outline method definition. 2021-10-18 10:00:21 +02:00
ParserSYCL
Preprocessor Bump the value of __STDC_VERSION__ in -std=c2x mode 2021-10-17 09:23:43 -04:00
Profile [test] Remove tests pinned to the legacy PM 2021-10-18 16:40:46 -07:00
Refactor
Rewriter
Sema Revert D105169 due to the two-stage failure in ASAN 2021-10-18 23:52:46 +09:00
SemaCUDA [HIP] Relax conditions for address space cast in builtin args 2021-10-15 15:35:52 -06:00
SemaCXX consteval if does not form a discarded statement 2021-10-20 07:24:55 -04:00
SemaObjC Revert D105169 due to the two-stage failure in ASAN 2021-10-18 23:52:46 +09:00
SemaObjCXX Revert "Compress formatting of array type names (int [4] -> int[4])" 2021-10-14 14:49:25 -07:00
SemaOpenCL Revert "Compress formatting of array type names (int [4] -> int[4])" 2021-10-14 14:49:25 -07:00
SemaOpenCLCXX Revert "Compress formatting of array type names (int [4] -> int[4])" 2021-10-14 14:49:25 -07:00
SemaSYCL Reland [clang] Check unsupported types in expressions 2021-10-15 13:55:36 +03:00
SemaTemplate Revert "Compress formatting of array type names (int [4] -> int[4])" 2021-10-14 14:49:25 -07:00
TableGen
Templight
Tooling [clang][tooling] Accept Clang invocations with multiple jobs 2021-07-27 10:47:55 +02:00
Unit
VFS [Modules] Do not remove failed modules after the control block phase 2021-08-17 16:46:51 -07:00
clang-rename
utils/update_cc_test_checks Revert D105169 due to the two-stage failure in ASAN 2021-10-18 23:52:46 +09:00
.clang-format
CMakeLists.txt Revert "Reland "[clang-repl] Re-implement clang-interpreter as a test case."" 2021-10-08 17:43:23 -07:00
TestRunner.sh
cxx-sections.data
lit.cfg.py Revert "Reland "[clang-repl] Re-implement clang-interpreter as a test case."" 2021-10-08 17:43:23 -07:00
lit.site.cfg.py.in libclang.so: Make SONAME independent from LLVM version 2021-07-26 16:37:26 -07:00
make_test_dirs.pl