Issue 131015
Summary Clang Crash
Labels clang
Assignees
Reporter scober
    I am writing an LLVM pass for the first time and so it is entirely possible that I am doing something wrong, but clang asked me to file a bug report (and it said PLEASE) so I am filing one.

The little context that I have is that my LLVM pass seemed to run fine until I started calling `getFirstInsertionPt()`. My pass doesn't do anything useful, it just tries to insert a call to a C function that I wrote at the beginning of every function in the source (the function that I wrote also does not do anything useful). Please let me know if there is any more information I can provide!

[preprocessed-c.txt](https://github.com/user-attachments/files/19216317/preprocessed-c.txt)
[run-script.txt](https://github.com/user-attachments/files/19216319/run-script.txt)
[stack_trace.txt](https://github.com/user-attachments/files/19216318/stack_trace.txt)
[bad-pass-cpp.txt](https://github.com/user-attachments/files/19216331/bad-pass-cpp.txt)
[function-that-pass-inserts-into-programs-c.txt](https://github.com/user-attachments/files/19216346/function-that-pass-inserts-into-programs-c.txt)
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to