[JITLink] Fix assert condition broken in 118e953b18.

The condition was accidentally changed from A != InvalidAddr to A != 0, this
commit changes it back.
This commit is contained in:
Lang Hames 2022-01-13 08:09:05 +11:00
parent d1f4c6a611
commit 71af8068ac
1 changed files with 2 additions and 1 deletions

View File

@ -60,7 +60,8 @@ public:
public:
FinalizedAlloc() = default;
explicit FinalizedAlloc(orc::ExecutorAddr A) : A(A) {
assert(A && "Explicitly creating an invalid allocation?");
assert(A.getValue() != InvalidAddr &&
"Explicitly creating an invalid allocation?");
}
FinalizedAlloc(const FinalizedAlloc &) = delete;
FinalizedAlloc(FinalizedAlloc &&Other) : A(Other.A) {