OSDN Git Service

Fix a bugpoint crash that JeffC noticed, looking like this:
authorChris Lattner <sabre@nondot.org>
Wed, 23 Feb 2005 06:12:11 +0000 (06:12 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 23 Feb 2005 06:12:11 +0000 (06:12 +0000)
commit9b5b1905dbad19de374e7617f615ba522ffe0468
tree3b46c617c4af9f72a61958ba9e918e355152f3c3
parent572dd08204008d810c0f939e85e73f3cbba00e35
Fix a bugpoint crash that JeffC noticed, looking like this:

*** Attempting to perform final cleanups: Final cleanups failed.  Sorry. :(  Ple
ase report a bug!

<llc>llc.exe: bytecode didn't read correctly.
llc.exe: bytecode didn't read correctly.
<crash>
Assertion failed: M && "You can't write a null module!!", file c:\llvm\lib\bytec
ode\writer\writer.cpp, line 1094

The fact that llc bombed (in this case) is ok, but bugpoint shouldn't crash after this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20285 91177308-0d34-0410-b5e6-96231b3b80d8
tools/bugpoint/ExtractFunction.cpp