diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-02-11 01:16:51 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-02-11 01:16:51 +0000 |
commit | f12b379448a9f2131feba15c01714e44bedda120 (patch) | |
tree | 04edc550bcb649ae1e77430e3ddc01c4c1b118a3 /include | |
parent | 612779eb83a98cec1e11dc823ba2e6420edbce54 (diff) | |
download | external_llvm-f12b379448a9f2131feba15c01714e44bedda120.zip external_llvm-f12b379448a9f2131feba15c01714e44bedda120.tar.gz external_llvm-f12b379448a9f2131feba15c01714e44bedda120.tar.bz2 |
Fix unnecessary removal of const through cast machinery
I have some uncommitted changes to the cast code that catch this sort of thing
at compile-time but I still need to do some other cleanup before I can enable
it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174853 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/MC/MCObjectWriter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/MC/MCObjectWriter.h b/include/llvm/MC/MCObjectWriter.h index d53ec2f..4939a3f 100644 --- a/include/llvm/MC/MCObjectWriter.h +++ b/include/llvm/MC/MCObjectWriter.h @@ -176,7 +176,7 @@ public: OS << StringRef(Zeros, N % 16); } - void WriteBytes(SmallVectorImpl<char> &ByteVec, unsigned ZeroFillSize = 0) { + void WriteBytes(const SmallVectorImpl<char> &ByteVec, unsigned ZeroFillSize = 0) { WriteBytes(StringRef(ByteVec.data(), ByteVec.size()), ZeroFillSize); } |