[PATCH] D129448: [CodeGen][Asan] Emit lifetime intrinsic for bypassed label
luxufan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 14 10:04:09 PDT 2022
StephenFan updated this revision to Diff 444701.
StephenFan added a comment.
1. Record bypassed lifetime start markers in codegenfunction class instead of lexicalscope. Since bypassed variables may be defined when lexicalscope is nullptr. This can also fix test fail of use-after-scope-goto.cpp.
2. Check more lifetime.start or end intrinsics in lifetime2.c test file.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D129448/new/
https://reviews.llvm.org/D129448
Files:
clang/lib/CodeGen/CGDecl.cpp
clang/lib/CodeGen/CGStmt.cpp
clang/lib/CodeGen/CodeGenFunction.cpp
clang/lib/CodeGen/CodeGenFunction.h
clang/test/CodeGen/lifetime2.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129448.444701.patch
Type: text/x-patch
Size: 6832 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220714/eb8d146b/attachment.bin>
More information about the cfe-commits
mailing list