[PATCH] D106585: Fix clang debug info irgen of i128 enums

Mike Hommey via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 3 04:32:44 PST 2021


glandium added a comment.

Reduced testcase:

  enum FrameIID {
    nsBox_id,
    nsIFrame_id,
    nsHTMLFramesetBlankFrame_id,
    nsHTMLFramesetBorderFrame_id,
  };
  
  enum class ClassID : unsigned char {
    nsBox_id,
    nsIFrame_id,
    nsHTMLFramesetBlankFrame_id,
    nsHTMLFramesetBorderFrame_id,
  };
  
  extern void foo(FrameIID, ClassID);
  
  void bar(FrameIID f, ClassID c) { foo(f, c); }

Compile with `clang++ -o test.ll -S -emit-llvm -g test.cpp` a number of times, and observe that sometimes the output is different. Add items to the enums to make it more frequent.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D106585



More information about the llvm-commits mailing list