summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/PackedVector.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/ADT/PackedVector.h')
-rw-r--r--include/llvm/ADT/PackedVector.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/PackedVector.h b/include/llvm/ADT/PackedVector.h
index 272322a2f4..2eaddc2b4e 100644
--- a/include/llvm/ADT/PackedVector.h
+++ b/include/llvm/ADT/PackedVector.h
@@ -90,7 +90,7 @@ public:
Vec.setValue(Vec.Bits, Idx, val);
return *this;
}
- operator T() {
+ operator T() const {
return Vec.getValue(Vec.Bits, Idx);
}
};