diff options
author | Sam James <sam@gentoo.org> | 2023-09-05 16:02:04 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-09-05 20:31:17 +0200 |
commit | 5f83522abc326da76fc6ef9b72ab9ca7f1d0d669 (patch) | |
tree | 70c6c255c65434f130145cf9e321408cfaa3782c | |
parent | [mlir][nfc] Allow ops to have operands/attributes named `context`. (diff) | |
download | llvm-project-gentoo-17.0.0-rc4.tar.gz llvm-project-gentoo-17.0.0-rc4.tar.bz2 llvm-project-gentoo-17.0.0-rc4.zip |
[Clang] Fix JIT test on 32-bit systemsgentoo-17.0.0-rc4
As reported by mgorny at https://reviews.llvm.org/D159115#4638037, the
unsigned long long cast fails on 32-bit systems at least with GCC.
It looks like a pointer provenance/aliasing issue rather than a bug in GCC.
Acked by Vassil Vassilev on the original revision.
Gentoo-Component: clang
-rw-r--r-- | clang/unittests/Interpreter/InterpreterTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/unittests/Interpreter/InterpreterTest.cpp b/clang/unittests/Interpreter/InterpreterTest.cpp index abb8e6377aab..5f2911e9a7ad 100644 --- a/clang/unittests/Interpreter/InterpreterTest.cpp +++ b/clang/unittests/Interpreter/InterpreterTest.cpp @@ -244,7 +244,7 @@ TEST(IncrementalProcessing, FindMangledNameSymbol) { // FIXME: Re-enable when we investigate the way we handle dllimports on Win. #ifndef _WIN32 - EXPECT_EQ((unsigned long long)&printf, Addr->getValue()); + EXPECT_EQ((uintptr_t)&printf, Addr->getValue()); #endif // _WIN32 } |