llvm-project/clang/lib
David Majnemer 602cfe7d62 CodeGen: Don't crash when a lambda uses a local constexpr variable
The DeclRefExpr might be for a variable initialized by a constant
expression which hasn't been ODR used.
Emit the initializer for the variable instead of trying to capture the
variable itself.

This fixes PR22071.

llvm-svn: 225060
2015-01-01 09:49:44 +00:00
..
ARCMigrate Objective-C SDK modernizer. When modernizing an enum to 2014-12-10 18:25:24 +00:00
AST Sema: Don't crash when an inject class name has a nested redefinition 2014-12-28 09:18:54 +00:00
ASTMatchers Add voidType() matcher. 2014-12-15 15:09:22 +00:00
Analysis [CallGraph] Make sure the edges are not missed due to re-declarations 2014-12-17 00:34:07 +00:00
Basic Fix formatting. NFC. 2014-12-27 06:59:37 +00:00
CodeGen CodeGen: Don't crash when a lambda uses a local constexpr variable 2015-01-01 09:49:44 +00:00
Driver Driver: unify compiler-rt component selection 2014-12-30 22:52:08 +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: Fix incorrect detection of ObjC "in" keyword. 2014-12-18 12:11:01 +00:00
Frontend Fix use-after-destruction introduced in r224924. 2014-12-29 21:28:15 +00:00
FrontendTool Provide a BuryPointer for unique_ptrs. 2014-08-29 16:53:14 +00:00
Headers Effectively revert r151058 which caused Clang's unwind.h to defer to 2014-12-29 13:29:38 +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 Lex: Don't let annotation tokens get into macro expansion 2014-12-28 07:42:49 +00:00
Parse Fix build breakage 2014-12-29 23:24:27 +00:00
Rewrite Trim some includes. NFC. 2014-10-29 22:13:46 +00:00
Sema Remove a comment that appears a second time 22 lines further down. 2014-12-30 20:13:37 +00:00
Serialization Objective-C: Serialize "more than one decl" state of ObjCMethodList. 2014-12-27 22:14:15 +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