[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:
Dean Michael Berris 2018-05-14 03:55:12 +00:00
parent a2a0e1f353
commit 845fe8a708
1 changed files with 4 additions and 3 deletions

View File

@ -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;
}