Open yijan4845 opened 3 weeks ago
@llvm/issue-subscribers-clang-codegen
Author: Yihan Yang (yijan4845)
Looks like this goes back to clang-5: https://godbolt.org/z/cGf4qM915
So if you are going to submit more fuzzer bugs please help us out and do a little more footwork for each one. It would be helpful to know what version of clang this started with. This is critical to prioritize, if this happened in the last release we can usually quickly find the PR and ping the author and turn around a fix soon.
For C even though we don't have assertions builds going back we can use C++ and then pass -x c
and that will allow you to verify assertions as far back as you need.
Please don't include flags not required to reproduce, we should strive for as minimal as possible.
Compiler Explorer: https://godbolt.org/z/M45qzaj4b
It seems that the code will get another assertion failed if
-
is changed to+
on line 5: AssertiongetType()->isIntOrIntVectorTy() && "Tried to create an integer operation on a non-integer type!"' failed.
Compiler Explorer for changed version: https://godbolt.org/z/9GYYPb9TW
Attempting to compile the following program with Clang Trunk and Clang Assertion Trunk:
Stack dump: