[llvm] f4f5e25 - [ValueLattice] Add missing const qualifier (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 8 06:39:55 PDT 2024
Author: Nikita Popov
Date: 2024-07-08T15:39:47+02:00
New Revision: f4f5e25467263adf60289ed0725d696368230b71
URL: https://github.com/llvm/llvm-project/commit/f4f5e25467263adf60289ed0725d696368230b71
DIFF: https://github.com/llvm/llvm-project/commit/f4f5e25467263adf60289ed0725d696368230b71.diff
LOG: [ValueLattice] Add missing const qualifier (NFC)
Added:
Modified:
llvm/include/llvm/Analysis/ValueLattice.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Analysis/ValueLattice.h b/llvm/include/llvm/Analysis/ValueLattice.h
index c0a875ed7efa3..b81eb5f60ab7e 100644
--- a/llvm/include/llvm/Analysis/ValueLattice.h
+++ b/llvm/include/llvm/Analysis/ValueLattice.h
@@ -281,7 +281,7 @@ class ValueLatticeElement {
return std::nullopt;
}
- ConstantRange asConstantRange(Type *Ty, bool UndefAllowed = false) {
+ ConstantRange asConstantRange(Type *Ty, bool UndefAllowed = false) const {
assert(Ty->isIntOrIntVectorTy() && "Must be integer type");
if (isConstantRange(UndefAllowed))
return getConstantRange();
More information about the llvm-commits
mailing list