diff options
author | Roman Divacky <rdivacky@freebsd.org> | 2012-09-06 15:59:27 +0000 |
---|---|---|
committer | Roman Divacky <rdivacky@freebsd.org> | 2012-09-06 15:59:27 +0000 |
commit | e637711ae013940dcee207d2ea19bbd629ccd2b3 (patch) | |
tree | 026c3a08949486beaee43a0972a4fd7f63569118 /clang/lib/Lex/PTHLexer.cpp | |
parent | 4717a8d654a50af4aeb8bd926f9336a6a70d6255 (diff) | |
download | bcm5719-llvm-e637711ae013940dcee207d2ea19bbd629ccd2b3.tar.gz bcm5719-llvm-e637711ae013940dcee207d2ea19bbd629ccd2b3.zip |
Dont cast away const needlessly. Found by gcc48 -Wcast-qual.
llvm-svn: 163325
Diffstat (limited to 'clang/lib/Lex/PTHLexer.cpp')
-rw-r--r-- | clang/lib/Lex/PTHLexer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Lex/PTHLexer.cpp b/clang/lib/Lex/PTHLexer.cpp index 67738e90751..bb6e73cc75f 100644 --- a/clang/lib/Lex/PTHLexer.cpp +++ b/clang/lib/Lex/PTHLexer.cpp @@ -448,8 +448,8 @@ PTHManager *PTHManager::Create(const std::string &file, // Get the buffer ranges and check if there are at least three 32-bit // words at the end of the file. - const unsigned char *BufBeg = (unsigned char*)File->getBufferStart(); - const unsigned char *BufEnd = (unsigned char*)File->getBufferEnd(); + const unsigned char *BufBeg = (const unsigned char*)File->getBufferStart(); + const unsigned char *BufEnd = (const unsigned char*)File->getBufferEnd(); // Check the prologue of the file. if ((BufEnd - BufBeg) < (signed)(sizeof("cfe-pth") + 4 + 4) || |