hanchenye-llvm-project/clang/test
Manuel Klimek 264f963114 Fix crash when resolving branch conditions for temporary destructor condition blocks.
Document and simplify ResolveCondition.

1. Introduce a temporary special case for temporary desctructors when resolving
the branch condition - in an upcoming patch, alexmc will change temporary
destructor conditions to not run through this logic, in which case we can remove
this (marked as FIXME); this currently fixes a crash.

2. Simplify ResolveCondition; while documenting the function, I noticed that it
always returns the last statement - either that statement is the condition
itself (in which case the condition was returned anyway), or the rightmost
leaf is returned; for correctness, the rightmost leaf must be evaluated anyway
(which the CFG does in the last statement), thus we can just return the last
statement in that case, too. Added an assert to verify the invariant.

llvm-svn: 207957
2014-05-05 09:58:03 +00:00
..
ARCMT Fix "regression" caused by updating our notion of POD to better match the C++11 2014-01-11 00:53:35 +00:00
ASTMerge Ignore test Inputs globally and remove redundant lit.local.cfg files 2013-11-15 13:37:49 +00:00
Analysis Fix crash when resolving branch conditions for temporary destructor condition blocks. 2014-05-05 09:58:03 +00:00
CXX Revert "Sema: Implement DR244" 2014-05-03 02:22:11 +00:00
CodeCompletion When completing Objective-C instance method invocations, perform a contextual conversion to an Objective-C pointer type of the target expression if needed. This fixes code completion of method invocations where the target is a smart pointer that has an explicit conversion operator to an Objective-C type. 2014-02-28 19:07:22 +00:00
CodeGen CodeGen: complete ARM ACLE hint 8.4 support 2014-05-04 02:52:25 +00:00
CodeGenCUDA Move all CUDA testing inputs to Inputs/ subdirectory inside the tests. 2014-04-28 22:21:28 +00:00
CodeGenCXX Err, wait. Those new test functions in r207890 need CHECK lines. 2014-05-03 01:19:39 +00:00
CodeGenObjC Make test independent of label. Thanks to Richard Smith for catching this! 2014-04-29 02:27:33 +00:00
CodeGenObjCXX Objective-C++ IRGen. Due to change to AST for initialization of c++11’s 2014-03-14 15:40:54 +00:00
CodeGenOpenCL Bug 18567: Fix constantexpr pointer casts with address spaces. 2014-04-17 17:45:37 +00:00
Coverage Skip this test when using lit integrated shell 2013-10-25 22:30:07 +00:00
Driver Simplify getARMCPUForMArch() and make it more consistent 2014-05-05 08:48:18 +00:00
FixIt Refactor all the checking for missing 'template<>'s when a declaration has a 2014-04-17 03:29:33 +00:00
Format clang-format: Explicitly set fallback style that is tested. 2013-12-03 06:48:41 +00:00
Frontend -fsyntax-only for a test 2014-05-01 23:58:20 +00:00
Headers Split out header integration tests 2014-05-04 13:00:32 +00:00
Index [libclang] Add attribute support for 'pure', 'const' and 'noduplicate'. 2014-05-01 15:41:58 +00:00
Integration Split out header integration tests 2014-05-04 13:00:32 +00:00
Layout Fix warning in ms-x86-vtordisp test case 2014-04-14 23:49:17 +00:00
Lexer Add some missing checks for C++1y digit separators that don't in fact separate 2014-04-22 23:50:25 +00:00
Misc Add speculative clang-interpreter test 2014-05-05 06:22:21 +00:00
Modules Make module self-import an error 2014-05-05 05:31:33 +00:00
OpenMP [OPENMP] parsing 'linear' clause (for directive 'omp simd') 2014-04-22 13:09:42 +00:00
PCH Split out header integration tests 2014-05-04 13:00:32 +00:00
Parser Fix PR 19630, don't crash when file ends with whitespace. 2014-05-02 23:40:32 +00:00
Preprocessor Target: fix wchar_t definition for Windows on ARM 2014-05-04 01:56:04 +00:00
Profile CodeGen: Avoid instrumenting implicit Decls more effectively 2014-04-25 07:20:05 +00:00
Rewriter Reorganize and improve semantic tests for dllexport/import 2014-02-22 19:47:30 +00:00
Sema Bitrig now supports TLS, so enable TLS support when targeting it. Patch by Patrick Wildt! 2014-05-01 23:19:06 +00:00
SemaCUDA Move all CUDA testing inputs to Inputs/ subdirectory inside the tests. 2014-04-28 22:21:28 +00:00
SemaCXX Fix declspec-thread.cpp test with a triple 2014-05-01 17:12:20 +00:00
SemaObjC Objective-C. Improve diagnosis of bridging types. 2014-04-29 16:12:56 +00:00
SemaObjCXX Objective-C. Improve diagnosis of bridging types. 2014-04-29 16:12:56 +00:00
SemaOpenCL Print detailed vector type information on diagnostics. 2014-04-25 20:41:38 +00:00
SemaTemplate PR19340: If we see a declaration of a member of an unspecialized class template 2014-04-17 03:52:20 +00:00
TableGen
Tooling PR19601: testcase improvement 2014-05-01 19:36:13 +00:00
Unit libclang: fix a bug in processing invalid arguments, introduced in r201249 2014-02-18 15:20:02 +00:00
VFS When module umbrellas change, rebuild them 2014-04-10 17:57:43 +00:00
.clang-format Add .clang-format without column limit to subdirectory tests/. 2013-11-08 06:45:35 +00:00
CMakeLists.txt Update lit.cfg to support the clang-interpreter test from r207950 2014-05-05 06:42:07 +00:00
Makefile Reverting because reverting r200145. 2014-01-27 22:57:33 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg Update lit.cfg to support the clang-interpreter test from r207950 2014-05-05 06:42:07 +00:00
lit.site.cfg.in test: Fix feature test for "native" in lit.cfg 2014-03-11 04:34:17 +00:00
make_test_dirs.pl