Skip to content

Commit f80a4ec

Browse files
committed
Fix unused variable warnings in release builds
1 parent a8e59e3 commit f80a4ec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/SPIRV/SPIRVWriter.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,7 @@ void LLVMToSPIRV::transVectorComputeMetadata(Function *F) {
656656
if (Attrs.hasAttribute(AttributeList::ReturnIndex,
657657
kVCMetadata::VCSingleElementVector)) {
658658
auto *RT = BF->getType();
659+
(void)RT;
659660
assert((RT->isTypeBool() || RT->isTypeFloat() || RT->isTypeInt() ||
660661
RT->isTypePointer()) &&
661662
"This decoration is valid only for Scalar or Pointer types");
@@ -675,6 +676,7 @@ void LLVMToSPIRV::transVectorComputeMetadata(Function *F) {
675676
}
676677
if (Attrs.hasAttribute(ArgNo + 1, kVCMetadata::VCSingleElementVector)) {
677678
auto *AT = BA->getType();
679+
(void)AT;
678680
assert((AT->isTypeBool() || AT->isTypeFloat() || AT->isTypeInt() ||
679681
AT->isTypePointer()) &&
680682
"This decoration is valid only for Scalar or Pointer types");

0 commit comments

Comments
 (0)