summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-06-15 19:18:13 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-06-15 19:18:13 +0000
commit9fa7cb1ba65f70f6126b01ce67021962fd0e0721 (patch)
tree6f972291469390a7982f5bbae45979066ba0612b /include
parente82b8eeaa2d36ee52690ae19bca9735629b6003e (diff)
downloadllvm-9fa7cb1ba65f70f6126b01ce67021962fd0e0721.tar.gz
llvm-9fa7cb1ba65f70f6126b01ce67021962fd0e0721.tar.bz2
llvm-9fa7cb1ba65f70f6126b01ce67021962fd0e0721.tar.xz
Constify PackedVector::reference::operator T().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133074 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-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);
}
};