[PATCH] D123300: [Clang] Enable opaque pointers by default

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 8 04:16:22 PDT 2022


nikic added a comment.

Here's a reduced test case:

  int main() { 
    unsigned long buf;
    unsigned long buf2;
    return 0;
    // Comment
  }

With command `build/bin/clang -O1 -gline-tables-only test.cpp -o - -S -emit-llvm -Xclang -disable-llvm-passes`. The `-O1` is relevant to enable placement of lifetime markers. It looks like we end up inheriting the location of the lifetime marker (at the end of the function) when opaque pointers are used.


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

https://reviews.llvm.org/D123300



More information about the llvm-commits mailing list