Masked gather and scatter - added DAGCombine visitors
[oota-llvm.git] / lib / CodeGen / ShadowStackGCLowering.cpp
index 815a0a76c16b3db2a0074c9c4d869e62f07df70c..7c0b2bb4569814cb051830d9f02c31a66ce27a52 100644 (file)
@@ -239,7 +239,7 @@ Constant *ShadowStackGCLowering::GetFrameMap(Function &F) {
   Constant *GEPIndices[2] = {
       ConstantInt::get(Type::getInt32Ty(F.getContext()), 0),
       ConstantInt::get(Type::getInt32Ty(F.getContext()), 0)};
-  return ConstantExpr::getGetElementPtr(GV, GEPIndices);
+  return ConstantExpr::getGetElementPtr(FrameMap->getType(), GV, GEPIndices);
 }
 
 Type *ShadowStackGCLowering::GetConcreteStackEntryType(Function &F) {