From: Bill Wendling Date: Mon, 5 Feb 2007 02:37:07 +0000 (+0000) Subject: Use unsigned char& instead of std::vector<>::reference. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=05c0b9ad7907e452a3a1c7afcbd8507d5b0c9626;p=oota-llvm.git Use unsigned char& instead of std::vector<>::reference. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33896 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/OutputBuffer.h b/include/llvm/Support/OutputBuffer.h index 2619ff90d78..6bbdd0b04e4 100644 --- a/include/llvm/Support/OutputBuffer.h +++ b/include/llvm/Support/OutputBuffer.h @@ -139,12 +139,10 @@ namespace llvm { assert(0 && "Emission of 64-bit data not implemented yet!"); } - std::vector::reference - operator [] (unsigned Index) { + unsigned char &operator[](unsigned Index) { return Output[Index]; } - std::vector::const_reference - operator [] (unsigned Index) const { + const unsigned char &operator[](unsigned Index) const { return Output[Index]; } };