[llvm-xray] consumeError when trying big-endian
authorFangrui Song <maskray@google.com>
Sun, 17 May 2020 05:42:52 +0000 (22:42 -0700)
committerFangrui Song <maskray@google.com>
Sun, 17 May 2020 05:44:48 +0000 (22:44 -0700)
commit3dbbbcc80e673a79f96b40a16a538dca65b709ab
treeef0896739904abb4c634817448777a9c9168ec1d
parent8092c8fec0847a5586a21e6b092c1b63e7cbc442
[llvm-xray] consumeError when trying big-endian

Follow-up of rL341226.

Fixes "Expected<T> must be checked before access or destruction"
llvm/lib/XRay/Trace.cpp