Go to file
David Blaikie 8e6c36eb80 DebugInfo: Don't leak location information from one function into the prologue of the next function.
CodeGenFunction objects aren't really designed to be reused for more
than one function, and doing so can leak debug info location information
from one function into the prologue of the next.

Add an assertion in to catch reuses of CodeGenFunction, which
surprisingly only caught the ObjC atomic getter/setter cases. Fix those
and add a test to demonstrate the issue.

The test is a bit slim, because we're just testing for the absence of a
debug location on the prologue instructions, which by itself probably
wouldn't be the end of the world - but the particular debug location
that was ending up there was for the previous function's last
instruction. This produced debug info for another function within this
function, which is something I'm trying to remove all cases of as its a
substantial source of bugs, especially around inlining (see r219215).

llvm-svn: 219690
2014-10-14 16:43:46 +00:00
clang DebugInfo: Don't leak location information from one function into the prologue of the next function. 2014-10-14 16:43:46 +00:00
clang-tools-extra [clang-tidy] misc-braces-around-statements.ShortStatementLines option 2014-10-13 12:46:22 +00:00
compiler-rt [sanitizer] Fix a crash in FP unwinder on ARM. 2014-10-14 13:46:07 +00:00
debuginfo-tests cleanup comments and remove an obsolete workaround 2014-10-13 18:04:10 +00:00
libclc Implement log1p builtin 2014-10-07 20:22:42 +00:00
libcxx Fix for PR 19616: 'tuple_cat of nested tuples fails in noexcept specification'. Thanks to Louis Dionne for the fix. 2014-10-07 21:42:12 +00:00
libcxxabi Correctly export _Unwind_[GS]et(GR|IP) for EHABI. 2014-10-13 21:01:30 +00:00
lld [mach-o] Add Pass to create are shim Atoms for ARM interworking. 2014-10-14 01:51:42 +00:00
lldb Fix dotest.py test runner exit code to return non-zero on failure/error. 2014-10-14 16:17:02 +00:00
llvm [LVI] Check for @llvm.assume dominating the edge branch 2014-10-14 16:04:49 +00:00
openmp I apologise in advance for the size of this check-in. At Intel we do 2014-10-07 16:25:50 +00:00
polly [Refactor][NfC] Simplify and clean the handling of (new) access relations 2014-10-13 12:58:03 +00:00