llvm-project
ad87d951 - [clang] Fix __builtin_mul_overflow for big _BitInts (#145497)

Commit
200 days ago
[clang] Fix __builtin_mul_overflow for big _BitInts (#145497) For long enough _BitInt types we use different types for memory, storing-loading and other operations. Makes sure it is correct for mixed sign __builtin_mul_overflow cases. Using pointer element type as a result type doesn't work, because it will be "in-memory" type which is usually bigger than "operations" type and that caused crashes because clang was trying to emit trunc to a bigger type. Fixes https://github.com/llvm/llvm-project/issues/144771
Author
Parents
Loading