Skip to content

Commit e79e22c

Browse files
[AMDGPU] Remove an unnecessary cast (NFC) (#146548)
Val is already of uint64_t.
1 parent 72a9c3c commit e79e22c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/Utils/AMDGPUPALMetadata.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ bool AMDGPUPALMetadata::setFromString(StringRef S) {
898898
errs() << "Unrecognized PAL metadata register key '" << S << "'\n";
899899
continue;
900900
}
901-
Key = MsgPackDoc.getNode(uint64_t(Val));
901+
Key = MsgPackDoc.getNode(Val);
902902
}
903903
Registers.getMap()[Key] = I.second;
904904
}

0 commit comments

Comments
 (0)