llvm-project/clang/test
Jennifer Yu 5285748c2c Fix assert on the variable which is used in omp clause is not marked
as used.

The problem only happens with constexpr variable, for constexpr variable,
variable is not marked during parser variable.   This is because compiler
might find some var's associate expressions may not actully an odr-used
later,  the variables get kept in MaybeODRUseExprs, in normal case, at
end of process fullExpr, the variable will be marked during the call to
CleanupVarDeclMarking(). Since we are processing expression of OpenMP
clauses, and the ActOnFinishFullExpr is not getting called that casue
variable is not get marked.

One way to fix this is to call CleanupVarDeclMarking() in EndOpenMPClause
for each omp directive.

This to fix https://bugs.llvm.org/show_bug.cgi?id=50206

Differential Revision: https://reviews.llvm.org/D101781
2021-05-04 09:07:35 -07:00
..
APINotes
ARCMT
AST Fix null ptr crash dumping TemplateTemplateParmDecl 2021-04-24 12:28:10 -04:00
ASTMerge Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
Analysis [analyzer] Fix a crash for dereferencing an empty llvm::Optional variable in SMTConstraintManager.h. 2021-05-04 16:50:21 +02:00
CXX CWG2076: Permit implicit conversions within a single level of braces 2021-04-22 16:49:39 -07:00
ClangScanDeps [clang][deps] Only generate absolute paths when asked to 2021-04-26 10:53:41 +02:00
CodeCompletion [CodeCompletion] Avoid spurious signature help for init-list args 2021-03-16 12:46:40 +01:00
CodeGen [clang] accept -fsanitize-ignorelist= in addition to -fsanitize-blacklist= 2021-05-04 10:24:00 -04:00
CodeGenCUDA [HIP] Fix device lib selection 2021-05-01 20:31:11 -04:00
CodeGenCXX [Matrix] Implement C-style explicit type conversions in CXX for matrix types 2021-05-04 15:27:57 +01:00
CodeGenCoroutines [Clang][Coroutine][DebugInfo] Relax test ordering requirement 2021-04-26 10:07:22 +01:00
CodeGenHIP
CodeGenObjC [ObjC] Add a command line flag that disables recognition of objc_direct for testability 2021-04-06 11:17:01 -04:00
CodeGenObjCXX [ObjC][ARC] Don't enter the cleanup scope if the initializer expression 2021-04-29 16:04:30 -07:00
CodeGenOpenCL [AMDGPU] Add options -mamdgpu-ieee -mno-amdgpu-ieee 2021-05-01 09:02:55 -04:00
CodeGenOpenCLCXX [OpenCL] Added distinct file extension for C++ for OpenCL. 2021-03-24 13:07:04 +00:00
CodeGenSYCL [SYCL] Implement SYCL address space attributes handling 2021-04-26 13:44:10 +03:00
Coverage
CoverageMapping Revert "Revert "[Coverage] Emit gap region between statements if first statements contains terminate statements."" 2021-03-04 11:52:43 -08:00
Driver [clang] accept -fsanitize-ignorelist= in addition to -fsanitize-blacklist= 2021-05-04 10:24:00 -04:00
FixIt Revert "[Clang] -Wunused-but-set-parameter and -Wunused-but-set-variable" 2021-04-28 12:47:18 -07:00
Format
Frontend [clang] accept -fsanitize-ignorelist= in addition to -fsanitize-blacklist= 2021-05-04 10:24:00 -04:00
Headers [OpenCL] Prevent adding vendor extensions for all targets 2021-04-30 14:42:51 +01:00
Import
Index [index] Improve macro indexing support 2021-04-06 09:12:14 -07:00
Integration XFAIL thinlto testcases on AIX 2021-04-26 17:02:06 +00:00
InterfaceStubs [test] Make ELF tests less reliant on the lexicographical order of non-local symbols 2021-02-13 01:01:06 -08:00
Layout [SystemZ][z/OS] fix lit test related to alignment 2021-03-23 13:15:19 -04:00
Lexer [C++2b] Support size_t literals 2021-03-31 13:36:23 +00:00
Misc Revert "[Clang] -Wunused-but-set-parameter and -Wunused-but-set-variable" 2021-04-28 12:47:18 -07:00
Modules [ASTReader] Only mark module out of date if not already compiled 2021-04-16 17:57:03 -07:00
OpenMP Fix assert on the variable which is used in omp clause is not marked 2021-05-04 09:07:35 -07:00
PCH Thread safety analysis: Fix false negative on break 2021-05-03 14:03:17 +02:00
Parser Fix potential infinite loop with malformed attribute syntax 2021-04-15 10:47:32 -04:00
Preprocessor Introduce -Wreserved-identifier 2021-05-04 11:19:01 +02:00
Profile [PGO, test] Fix typo in FileCheck var 2021-04-03 08:44:46 +01:00
Refactor
Rewriter
Sema Introduce -Wreserved-identifier 2021-05-04 11:19:01 +02:00
SemaCUDA [CUDA][HIP] Allow non-ODR use of host var in device 2021-04-19 14:45:24 -04:00
SemaCXX [Matrix] Implement C-style explicit type conversions in CXX for matrix types 2021-05-04 15:27:57 +01:00
SemaObjC Revert "[Clang] -Wunused-but-set-parameter and -Wunused-but-set-variable" 2021-04-28 12:47:18 -07:00
SemaObjCXX [Sema] Don't set BlockDecl's DoesNotEscape bit if the parameter type of 2021-04-29 16:19:48 -07:00
SemaOpenCL [OpenCL] Allow pipe as a valid identifier prior to OpenCL 2.0. 2021-05-04 14:30:42 +01:00
SemaOpenCLCXX [C++4OpenCL] Add diagnostics for OpenCL types in templates. 2021-04-27 13:04:25 +01:00
SemaSYCL [SYCL] Implement SYCL address space attributes handling 2021-04-26 13:44:10 +03:00
SemaTemplate Fix type printing of array template args 2021-05-01 18:50:09 +00:00
TableGen Fix test expectations for %diff documentation. 2021-03-30 17:48:08 -07:00
Templight
Tooling
Unit
VFS [clang] Don't crash when loading invalid VFS for the module dep collector 2021-04-26 17:05:22 -07:00
clang-rename
utils/update_cc_test_checks Temporairly revert "[CGCall] Annotate `this` argument with alignment" 2021-04-10 10:43:16 +03:00
.clang-format
CMakeLists.txt [llvm-rc] Add a GNU windres-like frontend to llvm-rc 2021-04-26 22:04:29 +03:00
TestRunner.sh
cxx-sections.data
lit.cfg.py [llvm-rc] Run clang to preprocess input files 2021-04-21 11:50:10 +03:00
lit.site.cfg.py.in [clang][lit] Allow test cases to use the compiler that are used to compile Clang 2021-03-24 11:32:57 +01:00
make_test_dirs.pl Prefer /usr/bin/env xxx over /usr/bin/xxx where xxx = perl, python, awk 2021-02-25 11:32:27 +01:00