]> granicus.if.org Git - clang/commit
[Lex] Use WritableMemoryBuffer in ScratchBuffer.cpp
authorPavel Labath <labath@google.com>
Thu, 11 Jan 2018 10:43:45 +0000 (10:43 +0000)
committerPavel Labath <labath@google.com>
Thu, 11 Jan 2018 10:43:45 +0000 (10:43 +0000)
commit998ea35e9f1bfee99dba88619fe53cc838afeddc
tree4630395f994f8cec1022e8435dead770b40e6c4f
parent43db18167dc43fce469e87849d9b33de7691f08d
[Lex] Use WritableMemoryBuffer in ScratchBuffer.cpp

This avoids the need to const_cast the buffer contents to write to it.

NFCI.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@322268 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Lex/ScratchBuffer.cpp