Skip to content

Commit

Permalink
[Continuations] - Remove uses of isOpaqueOrPointeeTypeMatches
Browse files Browse the repository at this point in the history
This function was long deprecated and now has been removed
upstream.

These were only used in asserts, and these asserts are going
to turn into no-ops with opaque pointers, so we can just remove
them now without replacement.
  • Loading branch information
jasilvanus committed Dec 8, 2023
1 parent 844c30f commit ac66a11
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions shared/continuations/lib/LowerRaytracingPipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,6 @@ struct PayloadCopyHelper {
// Pointer to the node field in the local payload
auto *LocalFieldPtr =
B.CreateInBoundsGEP(&PayloadTy, LocalPayload, PayloadIdxList);
assert(cast<PointerType>(LocalFieldPtr->getType())
->isOpaqueOrPointeeTypeMatches(FieldTy));

// If the field is serialized in multiple intervals in the global,
// we perform a manual bytewise copy using i32 and i8.
Expand Down Expand Up @@ -953,11 +951,6 @@ void LowerRaytracingPipelinePassImpl::copyPayload(
Payload,
Layout.SerializationTy->getPointerTo(Payload->getAddressSpace()));

assert(cast<PointerType>(PayloadSerialization->getType())
->isOpaqueOrPointeeTypeMatches(Layout.SerializationTy));
assert(cast<PointerType>(LocalPayload->getType())
->isOpaqueOrPointeeTypeMatches(&PayloadTy));

PayloadCopyHelper Helper{
*Mod,
B,
Expand Down

0 comments on commit ac66a11

Please sign in to comment.