Go to file
Jordan Rose 25bc20f846 [analyzer] Don't crash on implicit statements inside initializers.
Our BugReporter knows how to deal with implicit statements: it looks in
the ParentMap until it finds a parent with a valid location. However, since
initializers are not in the body of a constructor, their sub-expressions are
not in the ParentMap. That was easy enough to fix in AnalysisDeclContext.

...and then even once THAT was fixed, there's still an extra funny case
of Objective-C object pointer fields under ARC, which are initialized with
a top-level ImplicitValueInitExpr. To catch these cases,
PathDiagnosticLocation will now fall back to the start of the current
function if it can't find any other valid SourceLocations. This isn't great,
but it's miles better than a crash.

(All of this is only relevant when constructors and destructors are being
inlined, i.e. under -cfg-add-initializers and -cfg-add-implicit-dtors.)

llvm-svn: 160810
2012-07-26 20:04:30 +00:00
clang [analyzer] Don't crash on implicit statements inside initializers. 2012-07-26 20:04:30 +00:00
compiler-rt tsan: make the runtime library name tsan-neutral for Go upstream 2012-07-26 18:42:51 +00:00
debuginfo-tests Fix this for gdb 7.4. 2012-07-23 19:41:58 +00:00
libclc configure.py: Add an install rule. 2012-06-01 17:29:59 +00:00
libcxx Patch by Andrew C. Morrow: shims to work around macroized getc and putc on linux. On my eglibc 2.13 based Debian system 'getc' is a macro defined in 2012-07-26 20:01:13 +00:00
libcxxabi add a link to the libc++ website 2012-07-20 17:21:42 +00:00
lld Add a default constructor/destructor for ReaderOptionsPECOFF 2012-07-25 17:16:46 +00:00
lldb Relax the test for "is the frame I am going to step back out to the one I started from" in ThreadPlanStepOverRange so you don't 2012-07-26 18:23:21 +00:00
llvm Use an otherwise unused variable. 2012-07-26 19:42:56 +00:00
polly Create a new directory before running the polly script 2012-07-24 16:58:57 +00:00