Skip to content

Commit 0176e87

Browse files
thesamesamtru
authored andcommitted
[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. (cherry picked from commit 3403686)
1 parent 2b0dad9 commit 0176e87

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
@@ -244,7 +244,7 @@ TEST(IncrementalProcessing, FindMangledNameSymbol) {
244244

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

0 commit comments

Comments
 (0)