llvm-project/clang/AST
Ted Kremenek c0870605be Fixed bug in CFG::PopulateBlkExprMap where the ordering
between fetching the size of the expression map (for use as
the next integer id for an Expr*) and the creation of the
entry in the map could be non-deterministic.  This could
cause the size of the map to be incremented prior to the
index being determine.

On Linux the map entry would be created first, causing the
map to the "size" to be incremented prior to it being
queried. On Mac OS X we had the reverse behavior. Now the
size is always queried prior to the new id being inserted
into the map.

This was the real cause of the bit-overrun triggered in
PR 1847:

  http://llvm.org/bugs/show_bug.cgi?id=1847
  
Also reverted the change in patch 44813, which was a bogus
fix to this problem:

  http://llvm.org/viewvc/llvm-project?rev=44813&view=rev

llvm-svn: 44822
2007-12-10 23:58:39 +00:00
..
ASTConsumer.cpp Added method "HandleTopLevelDeclaration" to ASTConsumer. This will eventually 2007-11-29 23:05:17 +00:00
ASTContext.cpp Patch to implement "Protocol" as a built-in type declared as 2007-12-07 00:18:54 +00:00
Builtins.cpp Add more intrinsics. We can now correctly parse both Carbon.h and Cocoa.h without having to do -arch ppc. 2007-11-28 05:19:59 +00:00
CFG.cpp Fixed bug in CFG::PopulateBlkExprMap where the ordering 2007-12-10 23:58:39 +00:00
Decl.cpp Implemented when static typing is combined with protocols and use as receiver 2007-12-07 21:21:21 +00:00
DeclSerialization.cpp Fixed bug in the serialization of FunctionDecls. We would incorrectly 2007-11-16 18:11:10 +00:00
Expr.cpp Recognize CompoundLiteralExpr's as valid lvalue's. 2007-12-05 04:00:10 +00:00
ExprCXX.cpp Fixed DeclStmt::child_begin() to actually create an iterator that 2007-10-18 23:28:49 +00:00
Makefile Fix these to allow clang to be in any dir. 2006-10-26 04:56:55 +00:00
Stmt.cpp Keep track of whether the asm is volatile or not. 2007-11-23 23:12:25 +00:00
StmtDumper.cpp Now that we are passing back "free standing decls", make sure -ast-dump works like -ast-print. 2007-11-17 21:37:36 +00:00
StmtIterator.cpp Added support for StmtIterators to iterate over the size expressions 2007-10-29 21:38:03 +00:00
StmtPrinter.cpp Removed dependence on #including iostream. 2007-11-26 22:50:46 +00:00
StmtSerialization.cpp Implemented serialization of: ObjCEncodeExpr, ObjCSelectorExpr. 2007-12-05 00:43:08 +00:00
StmtViz.cpp Added support to clang driver to view ASTs using GraphViz. This 2007-09-19 21:29:43 +00:00
Type.cpp make it more clear what 'foo' is 2007-12-06 04:20:07 +00:00
TypeSerialization.cpp Fixed bug when serializing QualTypes where we were serializing in the 2007-11-14 23:35:01 +00:00