Skip to content

Commit 3403686

Browse files
committed
[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.
1 parent 2fc6fad commit 3403686

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/unittests/Interpreter/InterpreterTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ TEST(IncrementalProcessing, FindMangledNameSymbol) {
246246

247247
// FIXME: Re-enable when we investigate the way we handle dllimports on Win.
248248
#ifndef _WIN32
249-
EXPECT_EQ((unsigned long long)&printf, Addr->getValue());
249+
EXPECT_EQ((uintptr_t)&printf, Addr->getValue());
250250
#endif // _WIN32
251251
}
252252

0 commit comments

Comments
 (0)