[llvm] r192386 - Use getPointerSizeInBits() rather than 8 * getPointerSize()
Matt Arsenault
Matthew.Arsenault at amd.com
Thu Oct 10 12:09:05 PDT 2013
Author: arsenm
Date: Thu Oct 10 14:09:05 2013
New Revision: 192386
URL: http://llvm.org/viewvc/llvm-project?rev=192386&view=rev
Log:
Use getPointerSizeInBits() rather than 8 * getPointerSize()
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp?rev=192386&r1=192385&r2=192386&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp Thu Oct 10 14:09:05 2013
@@ -2161,8 +2161,9 @@ TargetLowering::AsmOperandInfoVector Tar
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);
}
More information about the llvm-commits
mailing list