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.

(cherry picked from commit 3403686)
  • Loading branch information
thesamesam authored and tru committed Sep 11, 2023
1 parent 2b0dad9 commit 0176e87
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 @@ -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
}

Expand Down

0 comments on commit 0176e87

Please sign in to comment.