1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

[AMDGPU][MC] Fix 2 for sanitizer failure in 364645

llvm-svn: 364656
This commit is contained in:
Dmitry Preobrazhensky 2019-06-28 16:28:46 +00:00
parent 9cb186cbd7
commit 6c92b88d5f
2 changed files with 6 additions and 6 deletions

View File

@ -810,9 +810,9 @@ void decodeMsg(unsigned Val,
StreamId = (Val & STREAM_ID_MASK_) >> STREAM_ID_SHIFT_;
}
int64_t encodeMsg(int64_t MsgId,
int64_t OpId,
int64_t StreamId) {
uint64_t encodeMsg(uint64_t MsgId,
uint64_t OpId,
uint64_t StreamId) {
return (MsgId << ID_SHIFT_) |
(OpId << OP_SHIFT_) |
(StreamId << STREAM_ID_SHIFT_);

View File

@ -483,9 +483,9 @@ void decodeMsg(unsigned Val,
uint16_t &StreamId);
LLVM_READNONE
int64_t encodeMsg(int64_t MsgId,
int64_t OpId,
int64_t StreamId);
uint64_t encodeMsg(uint64_t MsgId,
uint64_t OpId,
uint64_t StreamId);
} // namespace SendMsg