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 | d1f711fa6df3903f72ea4db503f576b2dc227faa (patch) | |
tree | 411893b34e84a7a7c8ede17075c836957f928a81 /lib/Bytecode/Writer/Writer.cpp | |
parent | c99ef085b90b32952b484e8843fb66ad65215b61 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34106 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Writer/Writer.cpp')
0 files changed, 0 insertions, 0 deletions