Skip to content

Commit

Permalink
[Clang] Fix JIT test on 32-bit systems
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
thesamesam committed Sep 5, 2023
1 parent 2fc6fad commit 3403686
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/unittests/Interpreter/InterpreterTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 3403686

Please sign in to comment.