[PATCH] D85399: [StackSafety] Use `Value::stripPointerCasts` to collect lifetime marker in StackLifetime

Chuanqi Xu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 6 19:42:25 PDT 2020


ChuanqiXu added a comment.

In D85399#2199566 <https://reviews.llvm.org/D85399#2199566>, @RKSimon wrote:

> test case?

Sorry, it's my fault to forget to update the test case. I update it now. The IR in the test file is generated by command `clang -O2 -S -emit-llvm` for the following code:

  typedef struct  {
      char a[500];
  } char_array;
  
  void consume(char_array);
  
  void simple(int cond) {
      if (cond) {
          char_array a;
          consume(a);
      } else {
          char_array b;
          consume(b);
      }
  }


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

https://reviews.llvm.org/D85399



More information about the llvm-commits mailing list