]> granicus.if.org Git - clang/commit
MSan told me that we actually dump the entire scratch buffer into PCH files, initiali...
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 6 Apr 2015 20:01:49 +0000 (20:01 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 6 Apr 2015 20:01:49 +0000 (20:01 +0000)
commitac1ad1d7d9f8dae6309f4f8082f5131703639dc9
tree6dd5f4f0b3c31eb5ce5b5a30fb989f2e6d6fed34
parent82b10c3984a27f89b9a26f5753b2861c6a01e39c
MSan told me that we actually dump the entire scratch buffer into PCH files, initialize it.

Writing 4k of zeros is preferrable to 4k of random memory. Document that. While
there remove the initialization of the first byte of the buffer and start at
index zero. It was writing a literal '0' instead of a null byte at the
beginning anyways, which didn't matter since we never read it.

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