[llvm] r364656 - [AMDGPU][MC] Fix 2 for sanitizer failure in 364645
Dmitry Preobrazhensky via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 28 09:28:46 PDT 2019
Author: dpreobra
Date: Fri Jun 28 09:28:46 2019
New Revision: 364656
URL: http://llvm.org/viewvc/llvm-project?rev=364656&view=rev
Log:
[AMDGPU][MC] Fix 2 for sanitizer failure in 364645
Modified:
llvm/trunk/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
llvm/trunk/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h
Modified: llvm/trunk/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp?rev=364656&r1=364655&r2=364656&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp Fri Jun 28 09:28:46 2019
@@ -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_);
Modified: llvm/trunk/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h?rev=364656&r1=364655&r2=364656&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h (original)
+++ llvm/trunk/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h Fri Jun 28 09:28:46 2019
@@ -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
More information about the llvm-commits
mailing list