summaryrefslogtreecommitdiff
path: root/lib/VMCore/Constants.cpp
diff options
context:
space:
mode:
authorMicah Villmow <villmow@gmail.com>2012-10-24 17:25:11 +0000
committerMicah Villmow <villmow@gmail.com>2012-10-24 17:25:11 +0000
commitb8bce928f4ffdf50eff69334f3e25b27848536b6 (patch)
treee334a8f1cd0126aafd8ae6cc2ca13ed654620193 /lib/VMCore/Constants.cpp
parent0873bea3ed2d740208131f7f1706b0628c0aae09 (diff)
downloadllvm-b8bce928f4ffdf50eff69334f3e25b27848536b6.tar.gz
llvm-b8bce928f4ffdf50eff69334f3e25b27848536b6.tar.bz2
llvm-b8bce928f4ffdf50eff69334f3e25b27848536b6.tar.xz
Back out r166591, not sure why this made it through since I cancelled the command. Bleh, sorry about this!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166596 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Constants.cpp')
-rw-r--r--lib/VMCore/Constants.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp
index b96257936d..a4e21e16b3 100644
--- a/lib/VMCore/Constants.cpp
+++ b/lib/VMCore/Constants.cpp
@@ -1673,7 +1673,7 @@ Constant *ConstantExpr::getAlignOf(Type* Ty) {
// Note that a non-inbounds gep is used, as null isn't within any object.
Type *AligningTy =
StructType::get(Type::getInt1Ty(Ty->getContext()), Ty, NULL);
- Constant *NullPtr = Constant::getNullValue(AligningTy->getPointerTo(Ty));
+ Constant *NullPtr = Constant::getNullValue(AligningTy->getPointerTo());
Constant *Zero = ConstantInt::get(Type::getInt64Ty(Ty->getContext()), 0);
Constant *One = ConstantInt::get(Type::getInt32Ty(Ty->getContext()), 1);
Constant *Indices[2] = { Zero, One };