From: Mehdi Amini Date: Fri, 1 Apr 2016 05:12:18 +0000 (+0000) Subject: Const correctness in raw_sha1_ostream (NFC) X-Git-Tag: llvmorg-3.9.0-rc1~10290 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7ef783d1faef2afd3ecace297bdea3dc6388e8ba;p=platform%2Fupstream%2Fllvm.git Const correctness in raw_sha1_ostream (NFC) From: Mehdi Amini llvm-svn: 265108 --- diff --git a/llvm/include/llvm/Support/raw_sha1_ostream.h b/llvm/include/llvm/Support/raw_sha1_ostream.h index 9f136df..0a33b1eb 100644 --- a/llvm/include/llvm/Support/raw_sha1_ostream.h +++ b/llvm/include/llvm/Support/raw_sha1_ostream.h @@ -25,7 +25,7 @@ class raw_sha1_ostream : public raw_ostream { /// See raw_ostream::write_impl. void write_impl(const char *Ptr, size_t Size) override { - State.update(ArrayRef((uint8_t *)Ptr, Size)); + State.update(ArrayRef((const uint8_t *)Ptr, Size)); } public: