Skip to content

Commit 62e9a31

Browse files
kazutakahiratakrishna2803
authored andcommitted
[AMDGPU] Remove an unnecessary cast (NFC) (llvm#151440)
getZExtValue() already returns uint64_t.
1 parent ef5ed1c commit 62e9a31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ MetadataStreamerMsgPackV4::getWorkGroupDimensions(MDNode *Node) const {
204204

205205
for (auto &Op : Node->operands())
206206
Dims.push_back(Dims.getDocument()->getNode(
207-
uint64_t(mdconst::extract<ConstantInt>(Op)->getZExtValue())));
207+
mdconst::extract<ConstantInt>(Op)->getZExtValue()));
208208
return Dims;
209209
}
210210

0 commit comments

Comments
 (0)