[PATCH] D126835: Round up zero-sized symbols to 1 byte in `.debug_aranges` (without breaking other logic).

Patrick Walton via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 16 11:12:09 PDT 2022


pcwalton added a comment.

Minimal reproduction:

  template <typename T>
  struct Baz {
      static constexpr int boo = int(-1);
  };
  
  extern template struct Baz<char>;
  
  void bar(const int& a);
  
  void foo() {
    bar(Baz<char>::boo);
  }

I have a fix; it seems to be a subtle pre-existing bug in LLVM actually that happened to be masked until now.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D126835



More information about the llvm-commits mailing list