summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Constants.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2014-04-23 20:58:57 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2014-04-23 20:58:57 +0000
commitbe558888499e98ed4c1f0a20ce9178114e86a5e2 (patch)
tree117116f966c32f049d27b33f62e4d30597927a00 /llvm/lib/IR/Constants.cpp
parentef86b4067cc152356eca7afa2673c438c80b0a40 (diff)
downloadbcm5719-llvm-be558888499e98ed4c1f0a20ce9178114e86a5e2.tar.gz
bcm5719-llvm-be558888499e98ed4c1f0a20ce9178114e86a5e2.zip
Remove more default address space argument usage.
These places are inconsequential in practice. llvm-svn: 207021
Diffstat (limited to 'llvm/lib/IR/Constants.cpp')
-rw-r--r--llvm/lib/IR/Constants.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Constants.cpp b/llvm/lib/IR/Constants.cpp
index 8072bbcedcf..54be9802920 100644
--- a/llvm/lib/IR/Constants.cpp
+++ b/llvm/lib/IR/Constants.cpp
@@ -1793,7 +1793,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());
+ Constant *NullPtr = Constant::getNullValue(AligningTy->getPointerTo(0));
Constant *Zero = ConstantInt::get(Type::getInt64Ty(Ty->getContext()), 0);
Constant *One = ConstantInt::get(Type::getInt32Ty(Ty->getContext()), 1);
Constant *Indices[2] = { Zero, One };
OpenPOWER on IntegriCloud