[clang] [Clang] Fix crash in __builtin_assume_aligned (PR #114217)
Oliver Stannard via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 18 03:14:58 PST 2024
================
@@ -74,7 +74,7 @@ int test13(int *a) {
}
int test14(int *a, int b) {
- a = (int *)__builtin_assume_aligned(b, 32); // expected-error {{incompatible integer to pointer conversion passing 'int' to parameter of type 'const void *}}
+ a = (int *)__builtin_assume_aligned(b, 32); // expected-error {{non-pointer argument to '__builtin_assume_aligned' is not allowed}}
----------------
ostannard wrote:
Done
https://github.com/llvm/llvm-project/pull/114217
More information about the cfe-commits
mailing list