summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/ShadowStackGC.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2011-07-22 08:52:50 +0000
committerJay Foad <jay.foad@gmail.com>2011-07-22 08:52:50 +0000
commit17bab443081f79b5809913a6b503eb02e3953368 (patch)
tree270e4d1993b0ef4fe9a688c8cd0519f0ec9ffda1 /llvm/lib/CodeGen/ShadowStackGC.cpp
parent040dd82f4497a1dc00d1b42df39274150c1b8fdb (diff)
downloadbcm5719-llvm-17bab443081f79b5809913a6b503eb02e3953368.tar.gz
bcm5719-llvm-17bab443081f79b5809913a6b503eb02e3953368.zip
Fix more MSVC warnings caused by a cases I missed when converting
ConstantExpr::getGetElementPtr to use ArrayRef. llvm-svn: 135762
Diffstat (limited to 'llvm/lib/CodeGen/ShadowStackGC.cpp')
-rw-r--r--llvm/lib/CodeGen/ShadowStackGC.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/ShadowStackGC.cpp b/llvm/lib/CodeGen/ShadowStackGC.cpp
index 612c9fca58f..9807c8cb27e 100644
--- a/llvm/lib/CodeGen/ShadowStackGC.cpp
+++ b/llvm/lib/CodeGen/ShadowStackGC.cpp
@@ -241,7 +241,7 @@ Constant *ShadowStackGC::GetFrameMap(Function &F) {
ConstantInt::get(Type::getInt32Ty(F.getContext()), 0),
ConstantInt::get(Type::getInt32Ty(F.getContext()), 0)
};
- return ConstantExpr::getGetElementPtr(GV, GEPIndices, 2);
+ return ConstantExpr::getGetElementPtr(GV, GEPIndices);
}
Type* ShadowStackGC::GetConcreteStackEntryType(Function &F) {
OpenPOWER on IntegriCloud