[PATCH] D129448: [CodeGen][Asan] Emit lifetime intrinsic for bypassed label

luxufan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 20 22:35:02 PDT 2022


StephenFan added inline comments.


================
Comment at: clang/test/CodeGen/lifetime2.c:42
+    // O2: @llvm.lifetime.start.p0i8(i64 1
     bar(&x, 1);
+    // O2: @llvm.lifetime.end.p0i8(i64 1
----------------
StephenFan wrote:
> vitalybuka wrote:
> > It assume this will break Msan Transforms/Instrumentation/MemorySanitizer.cpp:1298 as it assume variable is not initialized on start
> > 
> > ```
> > void goto_bypass(void) {
> >   {
> >     char x;
> >   l1:
> >     bar(&x, 1);
> >    if (x)
> >      goto l1
> >   }
> >   goto l1;
> > }
> > ```
> Yes. I still need some time to see how to deal with it.
Candidate solution: D129991


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D129448/new/

https://reviews.llvm.org/D129448



More information about the llvm-commits mailing list