hanchenye-llvm-project/clang/test
Reid Kleckner eb9dd5b87f Reland "[IR] Make AttributeSetNode public, avoid temporary AttributeList copies"
This re-lands r299875.

I introduced a bug in Clang code responsible for replacing K&R, no
prototype declarations with a real function definition with a prototype.
The bug was here:

       // Collect any return attributes from the call.
  -    if (oldAttrs.hasAttributes(llvm::AttributeList::ReturnIndex))
  -      newAttrs.push_back(llvm::AttributeList::get(newFn->getContext(),
  -                                                  oldAttrs.getRetAttributes()));
  +    newAttrs.push_back(oldAttrs.getRetAttributes());

Previously getRetAttributes() carried AttributeList::ReturnIndex in its
AttributeList. Now that we return the AttributeSetNode* directly, it no
longer carries that index, and we call this overload with a single node:
  AttributeList::get(LLVMContext&, ArrayRef<AttributeSetNode*>)

That aborted with an assertion on x86_32 targets. I added an explicit
triple to the test and added CHECKs to help find issues like this in the
future sooner.

llvm-svn: 299899
2017-04-10 23:31:05 +00:00
..
ARCMT [test] Port clang tests to canonicalized booleans 2017-01-25 13:11:45 +00:00
ASTMerge Revert r299355 "[ASTImporter] Fix for importing unnamed structs" 2017-04-03 21:06:45 +00:00
Analysis [lit] Fix Analysis test format pickling error 2017-04-05 18:56:48 +00:00
CXX Correct class-template deprecation behavior-REDUX 2017-03-23 18:51:54 +00:00
CodeCompletion [libclang] Fix crash in member access code completion with implicit base 2017-03-28 07:22:21 +00:00
CodeGen Reland "[IR] Make AttributeSetNode public, avoid temporary AttributeList copies" 2017-04-10 23:31:05 +00:00
CodeGenCUDA Use FPContractModeKind universally 2017-03-29 21:54:24 +00:00
CodeGenCXX Update for lifetime intrinsic signature change 2017-04-10 20:18:45 +00:00
CodeGenCoroutines [coroutines] Add coro.end handling 2017-04-05 04:55:03 +00:00
CodeGenObjC Update for lifetime intrinsic signature change 2017-04-10 20:18:45 +00:00
CodeGenObjCXX Update for lifetime intrinsic signature change 2017-04-10 20:18:45 +00:00
CodeGenOpenCL [AMDGPU] Temporarily change constant address space from 4 to 2 for the new address space mapping 2017-04-06 19:18:36 +00:00
Coverage Handle StaticAssertDecl in DeclContextPrinter 2017-01-03 12:16:02 +00:00
CoverageMapping Suppress uninteresting warnings in test/CoverageMapping, NFC. 2017-02-25 07:05:41 +00:00
Driver Toolchains: remove crtbegin on xwindows 2017-04-07 20:47:06 +00:00
FixIt [Sema] Improve the error diagnostic for dot destructor calls on pointer objects 2017-01-20 15:38:58 +00:00
Format clang/test/Format/inplace.cpp: Avoid using wildcard. 2017-02-28 10:05:56 +00:00
Frontend Add -iframeworkwithsysroot compiler option 2017-03-13 11:17:41 +00:00
Headers Remove the -faltivec alias option and replace it with -maltivec everywhere. 2017-03-21 22:06:18 +00:00
Import Testbed and skeleton of a new expression parser 2016-12-22 20:03:14 +00:00
Index [index] When indexing system headers make sure to report important reference relations 2017-03-23 16:34:47 +00:00
Integration
Layout Print nested name specifiers for typedefs and type aliases 2017-03-10 15:04:58 +00:00
Lexer Skip Unicode character expansion in assembly files 2017-04-07 10:13:00 +00:00
Misc Add [[clang::suppress(rule, ...)]] attribute 2017-03-27 19:45:24 +00:00
Modules Modules/builtins.m requires shell. 2017-04-04 02:50:40 +00:00
OpenMP [OPENMP] Fix for PR32333: Crash in call of outlined Function. 2017-04-10 19:16:45 +00:00
PCH [Modules][PCH] Serialize #pragma pack 2017-03-31 15:36:21 +00:00
Parser [OpenCL] Extended diagnostics for atomic initialization 2017-04-05 12:47:10 +00:00
Preprocessor Default enable the rtm feature only on skylake and later for now because Intel disabled the feature on some haswell and broadwell processors: 2017-03-28 23:03:19 +00:00
Profile Weaken test/Profile/c-ternary.c 2017-02-25 07:21:23 +00:00
Rewriter [test] Port clang tests to canonicalized booleans 2017-01-25 13:11:45 +00:00
Sema Sema: prevent __declspec(naked) use on x64 2017-04-07 15:13:47 +00:00
SemaCUDA [CUDA] Let NVPTX inherit the host's calling conventions. 2017-01-05 16:53:38 +00:00
SemaCXX Don't issue a warning if the shadowing declaration is in a class 2017-04-05 08:36:58 +00:00
SemaObjC [Sema][ObjC] Avoid the "type of property does not match type of accessor" 2017-03-30 13:33:51 +00:00
SemaObjCXX [ObjC++] Conversions from specialized to non-specialized Objective-C generic 2017-04-06 13:06:34 +00:00
SemaOpenCL [OpenCL] Extended diagnostics for atomic initialization 2017-04-05 12:47:10 +00:00
SemaTemplate Print nested name specifiers for typedefs and type aliases 2017-03-10 15:04:58 +00:00
TableGen
Tooling [test] Port clang tests to canonicalized booleans 2017-01-25 13:11:45 +00:00
Unit [test] Extend llvm_shlib_dir fix to unittests 2016-12-15 20:31:08 +00:00
VFS
.clang-format
CMakeLists.txt Re-apply r292662, "IRGen: Start using the WriteThinLTOBitcode pass." 2017-01-26 23:51:50 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg [analyzer] Add new Z3 constraint manager backend 2017-04-04 19:52:25 +00:00
lit.site.cfg.in [analyzer] Add new Z3 constraint manager backend 2017-04-04 19:52:25 +00:00
make_test_dirs.pl