Skip to content

Commit 53b7abd

Browse files
author
Francesco Petrogalli
committed
[llvm][CodeGen] Avoid implicit cast of TypeSize to integer in initActions.
Reviewers: sdesmalen, efriedma Reviewed By: efriedma Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D77317
1 parent c09acd5 commit 53b7abd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/TargetLoweringBase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ void TargetLoweringBase::initActions() {
614614
std::end(TargetDAGCombineArray), 0);
615615

616616
for (MVT VT : MVT::fp_valuetypes()) {
617-
MVT IntVT = MVT::getIntegerVT(VT.getSizeInBits());
617+
MVT IntVT = MVT::getIntegerVT(VT.getSizeInBits().getFixedSize());
618618
if (IntVT.isValid()) {
619619
setOperationAction(ISD::ATOMIC_SWAP, VT, Promote);
620620
AddPromotedToType(ISD::ATOMIC_SWAP, VT, IntVT);

0 commit comments

Comments
 (0)