Skip to content
Closed
Changes from all commits
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
4 changes: 2 additions & 2 deletions llvm/include/llvm/CodeGenTypes/LowLevelType.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class LLT {
}

/// Get a low-level vector of some number of elements and element type.
static constexpr LLT vector(ElementCount EC, LLT ScalarTy) {
static constexpr LLT vector(ElementCount EC, const LLT &ScalarTy) {
assert(!EC.isScalar() && "invalid number of vector elements");
assert(!ScalarTy.isVector() && "invalid vector element type");
return LLT{ScalarTy.isPointer(),
Expand Down Expand Up @@ -121,7 +121,7 @@ class LLT {
return vector(ElementCount::getScalable(MinNumElements), ScalarTy);
}

static constexpr LLT scalarOrVector(ElementCount EC, LLT ScalarTy) {
static constexpr LLT scalarOrVector(ElementCount EC, const LLT &ScalarTy) {
return EC.isScalar() ? ScalarTy : LLT::vector(EC, ScalarTy);
}

Expand Down