Issue 127428
Summary [LLVM] error in backend: Broken function found, compilation aborted
Labels new issue
Assignees
Reporter zhangqingqing24630
    I mention this issue to supplement the last issue(https://github.com/llvm/llvm-project/issues/127002). I'm sorry I didn't describe the clearance last time.
This problem cannot be reproduced in the release version, but can be reproduced in the debug version. My command to build the compiler is
`
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DLLVM_ENABLE_PROJECTS="clang;lld" -S ~/llvm-project/llvm -DCMAKE_INSTALL_PREFIX= ~/build
make -j$(nproc)
`
I tried to debug the problem and found the call stack as follows.

<!-- Failed to upload "image.png" -->
The function named verify is verified based on the broken field and fails to be verified.

<!-- Failed to upload "image.png" -->

<!-- Failed to upload "image.png" -->
By setting hardware breakpoints, I can find that the change of Broken is that attr is in the incompatible set.

<!-- Failed to upload "image.png" -->

![Image](https://github.com/user-attachments/assets/fcaf0a48-63a2-43d6-b694-1e9f9aa0d86e)
all incompatible types are added because Ty is a structure type. Attr is SExt type 

<!-- Failed to upload "image.png" -->
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to