summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2013-10-10 19:09:05 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2013-10-10 19:09:05 +0000
commita98c3b1816e708875ca07c42888e295d69d1be2d (patch)
treeddaa3e6ee604e7790e168e8286d9d79711a1b615 /llvm/lib/CodeGen/SelectionDAG
parentf21e3ea972f902c6de0acb40084029265a8baea7 (diff)
downloadbcm5719-llvm-a98c3b1816e708875ca07c42888e295d69d1be2d.tar.gz
bcm5719-llvm-a98c3b1816e708875ca07c42888e295d69d1be2d.zip
Use getPointerSizeInBits() rather than 8 * getPointerSize()
llvm-svn: 192386
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index 91276af78e5..05b025c1482 100644
--- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -2161,8 +2161,9 @@ TargetLowering::AsmOperandInfoVector TargetLowering::ParseConstraints(
break;
}
} else if (PointerType *PT = dyn_cast<PointerType>(OpTy)) {
- OpInfo.ConstraintVT = MVT::getIntegerVT(
- 8*getDataLayout()->getPointerSize(PT->getAddressSpace()));
+ unsigned PtrSize
+ = getDataLayout()->getPointerSizeInBits(PT->getAddressSpace());
+ OpInfo.ConstraintVT = MVT::getIntegerVT(PtrSize);
} else {
OpInfo.ConstraintVT = MVT::getVT(OpTy, true);
}
OpenPOWER on IntegriCloud