aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Support/OutputBuffer.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/llvm/Support/OutputBuffer.h b/include/llvm/Support/OutputBuffer.h
index 2619ff90d7..6bbdd0b04e 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<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];
}
};