]> granicus.if.org Git - llvm/commit
[llvm-bcanalyzer] Fixed error 'Expected<T> must be checked before access or destruction'
authorDenis Bakhvalov <denis.bakhvalov@intel.com>
Wed, 17 Jul 2019 23:28:39 +0000 (23:28 +0000)
committerDenis Bakhvalov <denis.bakhvalov@intel.com>
Wed, 17 Jul 2019 23:28:39 +0000 (23:28 +0000)
commit6f348380b7a9e00427194fb2972d6440af8493f2
treeceeac4374b34d5986b257454c4341226862816ed
parentf45b56db8e6556bf9e58319cbac2995d008077c7
[llvm-bcanalyzer] Fixed error 'Expected<T> must be checked before access or destruction'

After rL365286 I had failing test:
  LLVM :: tools/gold/X86/v1.12/thinlto_emit_linked_objects.ll

It was failing with the output:
$ llvm-bcanalyzer --dump llvm/test/tools/gold/X86/v1.12/Output/thinlto_emit_linked_objects.ll.tmp3.o.thinlto.bc
Expected<T> must be checked before access or destruction.
Unchecked Expected<T> contained error:
Unexpected end of file reading 0 of 0 bytesStack dump:

Change-Id: I07e03262074ea5e0aae7a8d787d5487c87f914a2

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@366387 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bitcode/Reader/BitcodeAnalyzer.cpp