diff options
author | Chris Lattner <sabre@nondot.org> | 2007-02-09 22:24:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-02-09 22:24:04 +0000 |
commit | d2e8e55ae0d7b9099a2354e8a29bc762adf5f0c1 (patch) | |
tree | 4f6db24ecb4b3825b5781f9be00730a957074464 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 8b7700f14661c5d31981b3219327a9a0c596dabf (diff) | |
download | bcm5719-llvm-d2e8e55ae0d7b9099a2354e8a29bc762adf5f0c1.tar.gz bcm5719-llvm-d2e8e55ae0d7b9099a2354e8a29bc762adf5f0c1.zip |
Fix clients like this:
delete ParseBytecodeFile(InputFilename, 0, &ErrorMessage);
llvm_shutdown();
delete ParseBytecodeFile(InputFilename, 0, &ErrorMessage);
The primitive type objects failed to ressurect themselves after shutdown, leading
to crashes in clients that used them after llvm_shutdown().
This solution isn't wonderful, because we clearly have static ctors. However,
the code it replaces was just as bad, so it's not a regression.
llvm-svn: 34106
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions