Go to file
Kuba Mracek 5e5e4e790f [ObjC] Fix lifetime markers of loop variable in EmitObjCForCollectionStmt [take 2]
CodeGenFunction::EmitObjCForCollectionStmt currently emits lifetime markers for the loop variable in an inconsistent way:  lifetime.start is emitted before the loop is entered, but lifetime.end is emitted inside the loop. AddressSanitizer uses these markers to track out-of-scope accesses to local variables, and we get false positives in Obj-C foreach loops (in the 2nd iteration of the loop). This patch keeps the loop variable alive for the whole loop by extending ForScope and registering the cleanup function inside EmitAutoVarAlloca.

Differential Revision: https://reviews.llvm.org/D32029

llvm-svn: 300340
2017-04-14 16:53:25 +00:00
clang [ObjC] Fix lifetime markers of loop variable in EmitObjCForCollectionStmt [take 2] 2017-04-14 16:53:25 +00:00
clang-tools-extra Silence -Wlogical-op-parentheses warning NFC 2017-04-14 14:36:45 +00:00
compiler-rt [Profile] PE binary coverage bug fix 2017-04-13 23:37:15 +00:00
debuginfo-tests Add a test for __block variables + asan. 2017-04-13 18:06:59 +00:00
libclc math: Implement sinh function 2017-02-25 02:46:53 +00:00
libcxx [libcxx] Direct support for Fuchsia 2017-04-13 21:29:21 +00:00
libcxxabi [CMake][libcxxabi] Use -nodefaultlibs for CMake checks 2017-04-07 20:10:41 +00:00
libunwind Reland "[CMake][libunwind] Use -nodefaultlibs for CMake checks" 2017-04-12 02:28:07 +00:00
lld [ELF] - Linkerscript: make section with no content to be SHT_PROGBITS by default. 2017-04-14 09:37:00 +00:00
lldb Don't use uuid_clear(), non-darwin platforms include 2017-04-13 02:12:32 +00:00
llgo benchcomp: Add a mode for analyzing file sizes. 2017-04-03 19:13:12 +00:00
llvm Remove "#if 0"ed out assert 2017-04-14 16:47:15 +00:00
openmp KMP_HW_SUBSET extended with NUMA support when HWLOC enabled 2017-04-13 17:15:07 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly Use isl C++ foreach implementation 2017-04-14 13:39:40 +00:00