summaryrefslogtreecommitdiff
path: root/lib/CodeGen/ShadowStackGC.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-08-13 23:27:32 +0000
committerOwen Anderson <resistor@mac.com>2009-08-13 23:27:32 +0000
commit0e275dc53880a7f14f8b8c83cc6e0290a215492d (patch)
tree08ea0f696cb049a03061301387fce33e4ee18226 /lib/CodeGen/ShadowStackGC.cpp
parentec9b26100e06d566ccb4516c6fe3f2a685ecd941 (diff)
downloadllvm-0e275dc53880a7f14f8b8c83cc6e0290a215492d.tar.gz
llvm-0e275dc53880a7f14f8b8c83cc6e0290a215492d.tar.bz2
llvm-0e275dc53880a7f14f8b8c83cc6e0290a215492d.tar.xz
Actually privatize a IntegerTypes, and fix a few bugs exposed by this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78955 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ShadowStackGC.cpp')
-rw-r--r--lib/CodeGen/ShadowStackGC.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/ShadowStackGC.cpp b/lib/CodeGen/ShadowStackGC.cpp
index 5b4cc7fe26..18c49363fe 100644
--- a/lib/CodeGen/ShadowStackGC.cpp
+++ b/lib/CodeGen/ShadowStackGC.cpp
@@ -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));