Actually privatize a IntegerTypes, and fix a few bugs exposed by this.
[oota-llvm.git] / lib / CodeGen / ShadowStackGC.cpp
index 5b4cc7fe2696a6b43ef8cf00ca9e82886bacd77e..18c49363fee69ad8d08d0a61315f0bb97069c410 100644 (file)
@@ -279,7 +279,7 @@ bool ShadowStackGC::initializeCustomLowering(Module &M) {
   //   FrameMap *Map;          // Pointer to constant FrameMap.
   //   void *Roots[];          // Stack roots (in-place array, so we pretend).
   // };
-  OpaqueType *RecursiveTy = OpaqueType::get();
+  OpaqueType *RecursiveTy = OpaqueType::get(M.getContext());
 
   EltTys.clear();
   EltTys.push_back(PointerType::getUnqual(RecursiveTy));