From 7ef783d1faef2afd3ecace297bdea3dc6388e8ba Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Fri, 1 Apr 2016 05:12:18 +0000 Subject: [PATCH] Const correctness in raw_sha1_ostream (NFC) From: Mehdi Amini llvm-svn: 265108 --- llvm/include/llvm/Support/raw_sha1_ostream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.7.4