llvm-project/clang/lib
Simon Pilgrim 73e8b67438 Revert rL360499 and rL360464 from cfe/trunk:
Reject attempts to call non-static member functions on objects outside
their lifetime in constant expressions.

This is undefined behavior per [class.cdtor]p2.

We continue to allow this for objects whose values are not visible
within the constant evaluation, because there's no way we can tell
whether the access is defined or not, existing code relies on the
ability to make such calls, and every other compiler allows such
calls.
........
Fix handling of objects under construction during constant expression
evaluation.

It's not enough to just track the LValueBase that we're evaluating, we
need to also track the path to the objects whose constructors are
running.
........
Fixes windows buildbots

llvm-svn: 360531
2019-05-11 20:21:59 +00:00
..
ARCMigrate Recommit r359859 "[Attribute/Diagnostics] Print macro if definition is an attribute declaration" 2019-05-07 03:20:17 +00:00
AST Revert rL360499 and rL360464 from cfe/trunk: 2019-05-11 20:21:59 +00:00
ASTMatchers Added an AST matcher for declarations that are in the `std` namespace 2019-05-03 12:50:00 +00:00
Analysis [c++20] Implement P1009R2: allow omitting the array bound in an array 2019-05-06 03:47:15 +00:00
Basic [Preamble] Stop circular inclusion of main file when building preamble 2019-05-10 10:25:35 +00:00
CodeGen ConstantLValueEmitter::tryEmitAbsolute - remove unused variable. NFCI. 2019-05-11 11:01:46 +00:00
CrossTU [analyzer][CrossTU] Extend CTU to VarDecls with initializer 2019-04-23 11:04:41 +00:00
Driver [cc1as] Change -compress-debug-sections= to use -- 2019-05-11 01:14:50 +00:00
Edit Range-style std::find{,_if} -> llvm::find{,_if}. NFC 2019-03-31 08:48:19 +00:00
Format Revert "Revert "[clang-format] Keep protobuf "package" statement on one line"" 2019-05-10 09:15:11 +00:00
Frontend Change -gz and -Wa,--compress-debug-sections to use gABI compression (SHF_COMPRESSED) 2019-05-10 02:08:21 +00:00
FrontendTool [analyzer] Don't display implementation checkers under -analyzer-checker-help, but do under the new flag -analyzer-checker-help-hidden 2019-05-01 19:56:47 +00:00
Headers Revert Include corecrt.h in stddef.h and vcruntime.h in stdarg.h to improve MS compatibility. 2019-05-08 22:01:20 +00:00
Index Use llvm::stable_sort 2019-04-24 14:43:05 +00:00
Lex [Preamble] Stop circular inclusion of main file when building preamble 2019-05-10 10:25:35 +00:00
Parse Simplify tracking of end of consumed decl-specifier sequence. 2019-05-09 19:45:46 +00:00
Rewrite Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Sema Improve interface of APValuePathEntry. 2019-05-10 20:05:31 +00:00
Serialization [c++20] Add support for explicit(bool), as described in P0892R2. 2019-05-09 03:59:21 +00:00
StaticAnalyzer [analyzer] Fix a crash when doing RVO from within blocks. 2019-05-07 22:33:13 +00:00
Tooling [Tooling] Add -x flags when inferring compile commands for files with no/invalid extension. 2019-05-07 14:34:06 +00:00
CMakeLists.txt Add Cross Translation Unit support library 2017-09-22 11:11:01 +00:00