Use unsigned char& instead of std::vector<>::reference.
authorBill Wendling <isanbard@gmail.com>
Mon, 5 Feb 2007 02:37:07 +0000 (02:37 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 5 Feb 2007 02:37:07 +0000 (02:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33896 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/OutputBuffer.h

index 2619ff90d78add3d544de66ce8f835609bca2315..6bbdd0b04e4dcc33631cc3f268b83f1f8c6a5af2 100644 (file)
@@ -139,12 +139,10 @@ namespace llvm {
         assert(0 && "Emission of 64-bit data not implemented yet!");
     }
 
-    std::vector<unsigned char>::reference
-    operator [] (unsigned Index) {
+    unsigned char &operator[](unsigned Index) {
       return Output[Index];
     }
-    std::vector<unsigned char>::const_reference
-    operator [] (unsigned Index) const {
+    const unsigned char &operator[](unsigned Index) const {
       return Output[Index];
     }
   };