forked from OSchip/llvm-project
Use unsigned char& instead of std::vector<>::reference.
llvm-svn: 33896
This commit is contained in:
parent
d282d49e78
commit
4573a8f613
|
@ -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];
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue