diff options
author | Sam James <sam@gentoo.org> | 2023-09-05 16:02:04 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-09-05 16:04:22 +0100 |
commit | 3403686b72507e3fdbcd69f21fb9235ffa0ca169 (patch) | |
tree | 184a4db677b84a1840392629545ae7ae312d920d /clang/unittests/Interpreter/InterpreterTest.cpp | |
parent | 2fc6fadeaf9eb3c9199cdf3ad192d966f04649ce (diff) | |
download | llvm-3403686b72507e3fdbcd69f21fb9235ffa0ca169.zip llvm-3403686b72507e3fdbcd69f21fb9235ffa0ca169.tar.gz llvm-3403686b72507e3fdbcd69f21fb9235ffa0ca169.tar.bz2 |
[Clang] Fix JIT test on 32-bit systems
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.
Diffstat (limited to 'clang/unittests/Interpreter/InterpreterTest.cpp')
-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 07fb002..62e5bac 100644 --- a/clang/unittests/Interpreter/InterpreterTest.cpp +++ b/clang/unittests/Interpreter/InterpreterTest.cpp @@ -246,7 +246,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 } |