llvm-project/clang/lib
John McCall c07a0c7e48 Change the representation of GNU ?: expressions to use a different expression
class and to bind the shared value using OpaqueValueExpr.  This fixes an
unnoticed problem with deserialization of these expressions where the
deserialized form would lose the vital pointer-equality trait;  or rather,
it fixes it because this patch also does the right thing for deserializing
OVEs.

Change OVEs to not be a "temporary object" in the sense that copy elision is
permitted.

This new representation is not totally unawkward to work with, but I think
that's really part and parcel with the semantics we're modelling here.  In
particular, it's much easier to fix things like the copy elision bug and to
make the CFG look right.

I've tried to update the analyzer to deal with this in at least some          
obvious cases, and I think we get a much better CFG out, but the printing
of OpaqueValueExprs probably needs some work.

llvm-svn: 125744
2011-02-17 10:25:35 +00:00
..
AST Change the representation of GNU ?: expressions to use a different expression 2011-02-17 10:25:35 +00:00
Analysis Change the representation of GNU ?: expressions to use a different expression 2011-02-17 10:25:35 +00:00
Basic Triple::MinGW64 is deprecated and removed. We can use Triple::MinGW32 instead. 2011-02-17 08:51:38 +00:00
CodeGen Change the representation of GNU ?: expressions to use a different expression 2011-02-17 10:25:35 +00:00
Driver Triple::MinGW64 is deprecated and removed. We can use Triple::MinGW32 instead. 2011-02-17 08:51:38 +00:00
Frontend lib/Frontend/InitHeaderSearch.cpp: Add mingw-w64's include paths. 2011-02-17 08:51:47 +00:00
FrontendTool [analyzer] Overhauling of the checker registration mechanism. 2011-02-14 18:13:31 +00:00
Headers Optimized IR for vec_splat 2010-12-01 21:59:31 +00:00
Index Give some convenient idiomatic accessors to Stmt::child_range and 2011-02-13 04:07:26 +00:00
Lex Warn for missing terminating " or ' instead of error for gcc compatibility. Fixed rdar://8914293. 2011-02-15 23:45:31 +00:00
Parse Improve parser recovery in "for" statements, from Richard Smith! 2011-02-17 03:38:46 +00:00
Rewrite Change the representation of GNU ?: expressions to use a different expression 2011-02-17 10:25:35 +00:00
Sema Change the representation of GNU ?: expressions to use a different expression 2011-02-17 10:25:35 +00:00
Serialization Change the representation of GNU ?: expressions to use a different expression 2011-02-17 10:25:35 +00:00
StaticAnalyzer Change the representation of GNU ?: expressions to use a different expression 2011-02-17 10:25:35 +00:00
CMakeLists.txt [analyzer] Move the files in lib/StaticAnalyzer to lib/StaticAnalyzer/Core. 2011-02-08 22:30:36 +00:00
Makefile Chris Lattner has strong opinions about directory 2010-12-23 19:38:26 +00:00