Skip to content

Commit 24b5867

Browse files
committed
[clang][bytecode] Disable int128 test if unsupported
This broke the armv8-quick builder: https://lab.llvm.org/buildbot/#/builders/154/builds/21492
1 parent d692380 commit 24b5867

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clang/test/AST/ByteCode/builtin-bit-cast.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,8 @@ constexpr const intptr_t &returns_local() { return 0L; }
530530
// both-note@+1 {{read of temporary whose lifetime has ended}}
531531
constexpr nullptr_t test_nullptr_bad = __builtin_bit_cast(nullptr_t, returns_local());
532532

533+
534+
#ifdef __SIZEOF_INT128__
533535
namespace VectorCast {
534536
typedef unsigned X __attribute__ ((vector_size (64)));
535537
typedef unsigned __int128 Y __attribute__ ((vector_size (64)));
@@ -568,5 +570,5 @@ namespace VectorCast {
568570
static_assert(s.a == 0); // ref-error {{not an integral constant expression}} \
569571
// ref-note {{initializer of 's' is not a constant expression}}
570572
#endif
571-
572573
}
574+
#endif

0 commit comments

Comments
 (0)