llvm.org GIT mirror llvm / a0a870f
[Support] Fix Wcast-qual warning git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267072 91177308-0d34-0410-b5e6-96231b3b80d8 Vedant Kumar 4 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
3636
3737 /// Digest more data.
3838 void update(StringRef Str) {
39 update(ArrayRef((uint8_t *)Str.data(), Str.size()));
39 update(ArrayRef((uint8_t *)const_cast(Str.data()),
40 Str.size()));
4041 }
4142
4243 /// Return a reference to the current raw 160-bits SHA1 for the digested data