Actually privatize a IntegerTypes, and fix a few bugs exposed by this.
[oota-llvm.git] / lib / VMCore / LLVMContext.cpp
index aa9dc3671a089b10ff15c43a8847949c197b4905..95ceeaee813f5aa2878aaf99862f89f6ed972d74 100644 (file)
@@ -27,7 +27,7 @@ LLVMContext& llvm::getGlobalContext() {
   return *GlobalContext;
 }
 
-LLVMContext::LLVMContext() : pImpl(new LLVMContextImpl()) { }
+LLVMContext::LLVMContext() : pImpl(new LLVMContextImpl(*this)) { }
 LLVMContext::~LLVMContext() { delete pImpl; }
 
 GetElementPtrConstantExpr::GetElementPtrConstantExpr