diff options
author | Timm Baeder <tbaeder@redhat.com> | 2025-03-04 14:07:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-04 14:07:53 +0100 |
commit | 53d433e702736f9edfee57ec2c1628c729336866 (patch) | |
tree | 625a6d3013723c0ca50451b13b2b10e199213e89 /clang/test/AST/ByteCode/builtin-functions.cpp | |
parent | cd4c10afea7eaaf87c1830e340863f0bf8745b0b (diff) | |
download | llvm-53d433e702736f9edfee57ec2c1628c729336866.zip llvm-53d433e702736f9edfee57ec2c1628c729336866.tar.gz llvm-53d433e702736f9edfee57ec2c1628c729336866.tar.bz2 |
[clang][bytecode] Only emit literal_comparison for string literals (#129691)
This is what the current interpreter does as well.
Diffstat (limited to 'clang/test/AST/ByteCode/builtin-functions.cpp')
-rw-r--r-- | clang/test/AST/ByteCode/builtin-functions.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/AST/ByteCode/builtin-functions.cpp b/clang/test/AST/ByteCode/builtin-functions.cpp index d51b039..0c26d40 100644 --- a/clang/test/AST/ByteCode/builtin-functions.cpp +++ b/clang/test/AST/ByteCode/builtin-functions.cpp @@ -1008,9 +1008,9 @@ namespace shufflevector { namespace FunctionStart { void a(void) {} - static_assert(__builtin_function_start(a) == a, ""); // both-error {{not an integral constant expression}} \ + static_assert(__builtin_function_start(a) == a, ""); // ref-error {{not an integral constant expression}} \ // ref-note {{comparison against opaque constant address '&__builtin_function_start(a)'}} \ - // expected-note {{comparison of addresses of potentially overlapping literals has unspecified value}} + // expected-error {{static assertion failed}} } namespace BuiltinInImplicitCtor { |