llvm-project/clang/lib
Henry Wong 525d4122c9 [analyzer] Do not invalidate the `this` pointer.
Summary:
`this` pointer is not an l-value, although we have modeled `CXXThisRegion` for `this` pointer, we can only bind it once, which is when we start to inline method. And this patch fixes https://bugs.llvm.org/show_bug.cgi?id=35506.

In addition, I didn't find any other cases other than loop-widen that could invalidate `this` pointer.

Reviewers: NoQ, george.karpenkov, a.sidorin, seaneveson, szepet

Reviewed By: NoQ

Subscribers: xazax.hun, rnkovacs, cfe-commits, MTC

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

llvm-svn: 330095
2018-04-15 10:34:06 +00:00
..
ARCMigrate Fix typos in clang 2018-04-06 15:14:32 +00:00
AST [ODRHash] Support pointer and reference types. 2018-04-13 22:34:43 +00:00
ASTMatchers Fix typos in clang 2018-04-06 15:14:32 +00:00
Analysis Fix the try_acquire_capability attribute to behave like the other try-lock functions. Fixes PR32954. 2018-04-12 17:53:21 +00:00
Basic [X86] Introduce cldemote intrinsic 2018-04-13 07:37:24 +00:00
CodeGen hwasan: add -fsanitize=kernel-hwaddress flag 2018-04-13 18:05:21 +00:00
CrossTU [CrossTU] Fix handling of Cross Translation Unit directory path 2017-10-27 12:53:37 +00:00
Driver [Driver] Export profiling symbols for -exported_symbols_list 2018-04-13 23:43:59 +00:00
Edit [Edit, Rewrite] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2018-03-27 00:01:49 +00:00
Format [clang-format] Improve Incomplete detection for (text) protos 2018-04-13 13:37:09 +00:00
Frontend Fix evaluation of `__has_include_next` during -frewrite-includes. 2018-04-13 17:43:15 +00:00
FrontendTool Make a build bot happy. 2018-02-10 14:26:53 +00:00
Headers [X86] Introduce cldemote intrinsic 2018-04-13 07:37:24 +00:00
Index [Index] Return SourceLocation to consumers, not FileID/Offset pair. 2018-04-09 14:12:51 +00:00
Lex hwasan: add -fsanitize=kernel-hwaddress flag 2018-04-13 18:05:21 +00:00
Parse Revert r329684 (and follow-ups 329693, 329714). See discussion on https://reviews.llvm.org/D43578. 2018-04-10 18:53:28 +00:00
Rewrite [Edit, Rewrite] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2018-03-27 00:01:49 +00:00
Sema [OPENMP] Replace push_back by emplace_back, NFC. 2018-04-13 17:48:43 +00:00
Serialization Revert "[Serialization] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC)." 2018-04-14 01:40:48 +00:00
StaticAnalyzer [analyzer] Do not invalidate the `this` pointer. 2018-04-15 10:34:06 +00:00
Tooling [Tooling] Correct the "-std" compile command option. 2018-04-11 09:18:18 +00:00
CMakeLists.txt Add Cross Translation Unit support library 2017-09-22 11:11:01 +00:00