From: Matt Arsenault Date: Thu, 10 Oct 2013 19:09:05 +0000 (+0000) Subject: Use getPointerSizeInBits() rather than 8 * getPointerSize() X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=828c9e73baacf0b0f68932718659681223b6b3c4;p=oota-llvm.git Use getPointerSizeInBits() rather than 8 * getPointerSize() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192386 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 91276af78e5..05b025c1482 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(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); }