]> granicus.if.org Git - clang/commit
ASTUnit::getMainBufferWithPrecompiledPreamble: use MD5 hash of the remapped
authorDmitri Gribenko <gribozavr@gmail.com>
Fri, 20 Dec 2013 00:16:25 +0000 (00:16 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Fri, 20 Dec 2013 00:16:25 +0000 (00:16 +0000)
commit6662406f93faf5a8d59ec4adccbed66d00f2ccb3
tree02e34de16f58bf2a15e2e46238de0c46a5886754
parent74a06fac1a41a5955aab5712c12af024b93af841
ASTUnit::getMainBufferWithPrecompiledPreamble: use MD5 hash of the remapped
files to tell if they were changed since the last time we have computed the
preamble

We used to check only the buffer size, so if the new remapped buffer has the
same size as the previous one, we would think that the buffer did not change,
and we did not rebuild the preambule, which sometimes caused us to crash.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197755 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Frontend/ASTUnit.h
lib/Frontend/ASTUnit.cpp