Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lib/SPIRV/SPIRVWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2696,8 +2696,7 @@ LLVMToSPIRVBase::transValueWithoutDecoration(Value *V, SPIRVBasicBlock *BB,

SPIRVType *LLVMToSPIRVBase::mapType(Type *T, SPIRVType *BT) {
assert(!T->isPointerTy() && "Pointer types cannot be stored in the type map");
[[maybe_unused]] auto EmplaceStatus = TypeMap.try_emplace(T, BT);
assert(EmplaceStatus.second && "The type was already added to the map");
TypeMap.try_emplace(T, BT);
SPIRVDBG(dbgs() << "[mapType] " << *T << " => "; spvdbgs() << *BT << '\n');
return BT;
}
Expand Down