Skip to content

Commit e1fdaaa

Browse files
[AMDGPU] Work around a warning
This patch works around: llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp:1101:13: error: enumeration values 'USubCond' and 'USubSat' not handled in switch [-Werror,-Wswitch] I've notified the author in #105568.
1 parent 62180df commit e1fdaaa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -1154,6 +1154,9 @@ Value *SplitPtrStructs::handleMemoryInst(Instruction *I, Value *Arg, Value *Ptr,
11541154
break;
11551155
case AtomicRMWInst::BAD_BINOP:
11561156
llvm_unreachable("Not sure how we got a bad binop");
1157+
case AtomicRMWInst::USubCond:
1158+
case AtomicRMWInst::USubSat:
1159+
break;
11571160
}
11581161
}
11591162

0 commit comments

Comments
 (0)