[llvm-commits] [llvm] r133074 - /llvm/trunk/include/llvm/ADT/PackedVector.h

Argyrios Kyrtzidis akyrtzi at gmail.com
Wed Jun 15 12:18:13 PDT 2011


Author: akirtzidis
Date: Wed Jun 15 14:18:13 2011
New Revision: 133074

URL: http://llvm.org/viewvc/llvm-project?rev=133074&view=rev
Log:
Constify PackedVector::reference::operator T().

Modified:
    llvm/trunk/include/llvm/ADT/PackedVector.h

Modified: llvm/trunk/include/llvm/ADT/PackedVector.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/PackedVector.h?rev=133074&r1=133073&r2=133074&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/PackedVector.h (original)
+++ llvm/trunk/include/llvm/ADT/PackedVector.h Wed Jun 15 14:18:13 2011
@@ -90,7 +90,7 @@
       Vec.setValue(Vec.Bits, Idx, val);
       return *this;
     }
-    operator T() {
+    operator T() const {
       return Vec.getValue(Vec.Bits, Idx);
     }
   };





More information about the llvm-commits mailing list