llvm-project/clang/lib
David Blaikie 47d28e07c1 DebugInof: Correct the location of exception cleanups in global ctors/dtors and ObjC methods
Without setting the CurEHLocation these cleanups would be attributed to
whatever the last active debug line location was (the 'fn' call in the
included test cases). By setting CurEHLocation correctly the line
information is improved/corrected.

This quality bug turned into a crasher with r225000 when, instead of
allowing the last location to persist, it would be zero'd out. This
could lead to a function call (such as the dtor) being made without a
debug location - if that call was subsequently inlined (and the caller
and callee had debug info, just not the call instruction) the inliner
would violate important constraints about the debug location chains by
not updating the inlined instructions to chain up to the callee
locations.

So, by fixing this bug, I am addressing the assertion failures
introduced by r225000 and should be able to recommit that patch with
impunity...

llvm-svn: 225955
2015-01-14 07:10:46 +00:00
..
ARCMigrate Objective-C SDK modernizer. When modernizing an enum to 2014-12-10 18:25:24 +00:00
AST Rename RefersToCapturedVariable to RefersToEnclosingVariableOrCapture, NFC 2015-01-12 10:17:46 +00:00
ASTMatchers Add voidType() matcher. 2014-12-15 15:09:22 +00:00
Analysis Rename RefersToCapturedVariable to RefersToEnclosingVariableOrCapture, NFC 2015-01-12 10:17:46 +00:00
Basic Sema: Relax parsing of '#' in constraints 2015-01-14 05:11:09 +00:00
CodeGen DebugInof: Correct the location of exception cleanups in global ctors/dtors and ObjC methods 2015-01-14 07:10:46 +00:00
Driver Revert "Insert random noops to increase security against ROP attacks (clang)" 2015-01-14 05:24:11 +00:00
Edit Edit: Do not extend a removal to include trailing whitespace if we're at the end 2014-09-15 11:47:10 +00:00
Format clang-format: [Java] Detect `native` keyword. 2015-01-13 22:32:50 +00:00
Frontend Revert "Insert random noops to increase security against ROP attacks (clang)" 2015-01-14 05:24:11 +00:00
FrontendTool Provide a BuryPointer for unique_ptrs. 2014-08-29 16:53:14 +00:00
Headers [AVX512] Add FP unpack intrinsics 2015-01-14 01:31:17 +00:00
Index [libclang] Use same USR encoding for 'char' regardless of what the target considers the sign to be. 2014-12-08 09:09:05 +00:00
Lex Inherit attributes when infering a framework module 2015-01-13 17:47:44 +00:00
Parse Parse: Switch to using EOF tokens for late parsed attributes 2015-01-13 08:35:24 +00:00
Rewrite Trim some includes. NFC. 2014-10-29 22:13:46 +00:00
Sema Sema: Check type compatibility with the most recent decl when merging 2015-01-14 02:27:38 +00:00
Serialization Fix bogus 'method is unavailable' errors with modules 2015-01-12 19:27:00 +00:00
StaticAnalyzer Use nullptr to silence -Wsentinel when self-hosting on Windows 2014-12-01 22:02:27 +00:00
Tooling Make ArgumentsAdjuster an std::function. 2014-12-03 17:53:02 +00:00
CMakeLists.txt Fix build with various feature flag combinations 2014-07-14 22:17:22 +00:00
Makefile Make clang's rewrite engine a core feature 2014-07-16 16:48:33 +00:00