Skip to content

Commit c3120b6

Browse files
MrSidimssys-ce-bb
authored andcommitted
Add [[maybe_unused]] to EmplaceStatus for type map (#3132)
Signed-off-by: Sidorov, Dmitry <dmitry.sidorov@intel.com> Original commit: KhronosGroup/SPIRV-LLVM-Translator@8011eaf0c686ecc
1 parent 383d93c commit c3120b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm-spirv/lib/SPIRV/SPIRVWriter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2697,7 +2697,7 @@ LLVMToSPIRVBase::transValueWithoutDecoration(Value *V, SPIRVBasicBlock *BB,
26972697

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

0 commit comments

Comments
 (0)