Fix clients like this:
authorChris Lattner <sabre@nondot.org>
Fri, 9 Feb 2007 22:24:04 +0000 (22:24 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 9 Feb 2007 22:24:04 +0000 (22:24 +0000)
commitd1f711fa6df3903f72ea4db503f576b2dc227faa
tree411893b34e84a7a7c8ede17075c836957f928a81
parentc99ef085b90b32952b484e8843fb66ad65215b61
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
lib/VMCore/Type.cpp