Skip to content

Commit 5dc0c75

Browse files
committed
[RISCV][TTI] Fix missing return in the end of function
1 parent 817f453 commit 5dc0c75

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -964,6 +964,7 @@ InstructionCost RISCVTTIImpl::getCastInstrCost(unsigned Opcode, Type *Dst,
964964
// Counts of narrow/widen instructions.
965965
return std::abs(PowDiff);
966966
}
967+
return BaseT::getCastInstrCost(Opcode, Dst, Src, CCH, CostKind, I);
967968
}
968969

969970
unsigned RISCVTTIImpl::getEstimatedVLFor(VectorType *Ty) {

0 commit comments

Comments
 (0)