llvm-project/clang/test
Douglas Gregor 9b3932c0bc Fix a marvelous chained AST writing bug, where we end up with the
following amusing sequence:
  - AST writing schedules writing a type X* that it had never seen
  before
  - AST writing starts writing another declaration, ends up
  deserializing X* from a prior AST file. Now we have two type IDs for
  the same type!
  - AST writer tries to write X*. It only has the lower-numbered ID
  from the the prior AST file, so references to the higher-numbered ID
  that was scheduled for writing go off into lalaland.

To fix this, keep the higher-numbered ID so we end up writing the type
twice. Since this issue occurs so rarely, and type records are
generally rather small, I deemed this better than the alternative: to
keep a separate mapping from the higher-numbered IDs to the
lower-numbered IDs, which we would end up having to check whenever we
want to deserialize any type.

Fixes <rdar://problem/8511624>, I think.

llvm-svn: 115647
2010-10-05 18:37:06 +00:00
..
ASTMerge Don't add an imported function into its lexical context until *after* 2010-10-01 23:55:07 +00:00
Analysis Added support for base and member destructors in destructor. 2010-10-05 05:37:00 +00:00
CXX In Sema's TryRefInitWithConversionFunction, suppress user conversions for the overload candidates. 2010-10-05 03:05:30 +00:00
CodeCompletion When provide code completions for a variadic Objective-C method 2010-08-31 05:13:43 +00:00
CodeGen Do x86_64. 2010-10-03 08:34:05 +00:00
CodeGenCXX Mark explict methods as explict in debug info. 2010-10-01 23:32:17 +00:00
CodeGenObjC In the fragile ObjC ABI, save the caught exception to the side if there are 2010-10-04 23:42:51 +00:00
CodeGenObjCXX Copying result of object property reference expression 2010-09-27 17:30:38 +00:00
Coverage Frontend/XML: Add support for printing nested structures, patch by Martin Vejnár! 2010-09-29 16:09:28 +00:00
Driver Fix last test still failing on Win32. 100% pass rate now! 2010-09-11 20:43:12 +00:00
FixIt Better diagnostic for superfluous scope specifier inside a class definition for member functions. + Fixit. 2010-10-01 21:19:28 +00:00
Frontend Frontend: Add basic -H support. 2010-08-24 22:44:13 +00:00
Headers Define _Bool, bool, true, and false macros in <stdbool.h> when we're 2010-09-29 04:57:11 +00:00
Index Remove a rogue typo 2010-10-05 14:58:05 +00:00
Lexer Lexer: Implement GCC's version of pragma message. 2010-09-27 06:19:02 +00:00
Misc Revert r114316, -Wunused-value enabled by default was intended. 2010-09-19 23:03:35 +00:00
PCH Fix a marvelous chained AST writing bug, where we end up with the 2010-10-05 18:37:06 +00:00
Parser enhance tentative parsing to handle ms extensions, patch by Martin Vejnar! 2010-09-28 23:35:09 +00:00
Preprocessor Revert r114316, -Wunused-value enabled by default was intended. 2010-09-19 23:03:35 +00:00
Rewriter Fix a block rewriter bug where copy/dispose entries in 2010-10-05 18:05:06 +00:00
Sema diagnose errors when a builtin that require constant arguments don't have them. 2010-10-01 23:23:24 +00:00
SemaCXX Add test case for r115588. 2010-10-05 03:15:43 +00:00
SemaObjC Patch to support transparent_union arguments 2010-09-27 22:42:37 +00:00
SemaObjCXX Use ParseObjCSelectorPiece for parsing getter and setter names in @property declarations. Fixes PR8169. 2010-10-02 17:45:21 +00:00
SemaTemplate Fix handling of dependent nested namespace specifiers in UsingDecls 2010-09-29 17:58:28 +00:00
CMakeLists.txt CMake: Clang test targets depend on the {FileCheck,not,count} tools. 2010-07-29 22:57:17 +00:00
Makefile daniel doesn't hate me, he hates macpython 2.5, which 2010-07-18 18:42:35 +00:00
TestRunner.sh Switch TestRunner.sh to just use 'lit'. 2009-09-20 22:00:23 +00:00
cxx-sections.data
lit.cfg Let lit give helpful advice if 'make test' was not run yet. 2010-09-27 20:40:32 +00:00
lit.site.cfg.in Rework site config for cmake to be generated at configure time, and only pass 2009-11-07 23:53:32 +00:00
make_test_dirs.pl