Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion llvm/include/llvm/CodeGen/TargetLowering.h
Original file line number Diff line number Diff line change
Expand Up @@ -3024,7 +3024,7 @@ class TargetLoweringBase {
/// by referencing its sub-register AX.
/// Targets must return false when FromTy <= ToTy.
virtual bool isTruncateFree(Type *FromTy, Type *ToTy) const {
return false;
return isTruncateFree(EVT::getEVT(FromTy), EVT::getEVT(ToTy));
}

/// Return true if a truncation from FromTy to ToTy is permitted when deciding
Expand Down
Loading