Skip to content

Commit f4f5e25

Browse files
committed
[ValueLattice] Add missing const qualifier (NFC)
1 parent da827d0 commit f4f5e25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/Analysis/ValueLattice.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ class ValueLatticeElement {
281281
return std::nullopt;
282282
}
283283

284-
ConstantRange asConstantRange(Type *Ty, bool UndefAllowed = false) {
284+
ConstantRange asConstantRange(Type *Ty, bool UndefAllowed = false) const {
285285
assert(Ty->isIntOrIntVectorTy() && "Must be integer type");
286286
if (isConstantRange(UndefAllowed))
287287
return getConstantRange();

0 commit comments

Comments
 (0)