diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-10-10 19:09:05 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-10-10 19:09:05 +0000 |
commit | 828c9e73baacf0b0f68932718659681223b6b3c4 (patch) | |
tree | 26f3eff3449622d73d36be9d46df268cb9d94e24 /lib/CodeGen/SelectionDAG/TargetLowering.cpp | |
parent | 89dedc1b65cb09a652d251273e2eae938dead60b (diff) | |
download | llvm-828c9e73baacf0b0f68932718659681223b6b3c4.tar.gz llvm-828c9e73baacf0b0f68932718659681223b6b3c4.tar.bz2 llvm-828c9e73baacf0b0f68932718659681223b6b3c4.tar.xz |
Use getPointerSizeInBits() rather than 8 * getPointerSize()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192386 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/TargetLowering.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 91276af78e..05b025c148 100644 --- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/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); } |