forked from OSchip/llvm-project
[XRay][compiler-rt] Fixup: Avoid C++11 narrowing in non-x86_64
This should fix non-x86_64 builds where size_t != atomic_uint64_t::Type. Follow-up to D46574. llvm-svn: 332209
This commit is contained in:
parent
a2a0e1f353
commit
845fe8a708
|
@ -123,9 +123,10 @@ XRayBuffer fdrIterator(const XRayBuffer B) {
|
|||
if (It == End)
|
||||
return {nullptr, 0};
|
||||
|
||||
XRayBuffer Result{
|
||||
It->Data, __sanitizer::atomic_load(&It->Extents->Size,
|
||||
__sanitizer::memory_order_acquire)};
|
||||
XRayBuffer Result;
|
||||
Result.Data = It->Data;
|
||||
Result.Size = __sanitizer::atomic_load(&It->Extents->Size,
|
||||
__sanitizer::memory_order_acquire);
|
||||
++It;
|
||||
return Result;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue