Skip to content

Commit

Permalink
[clang] Const correct ComputePreambleBounds
Browse files Browse the repository at this point in the history
  • Loading branch information
kadircet committed Apr 16, 2020
1 parent d5c26f8 commit 61b9670
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clang/include/clang/Frontend/PrecompiledPreamble.h
Expand Up @@ -38,7 +38,7 @@ class PCHContainerOperations;

/// Runs lexer to compute suggested preamble bounds.
PreambleBounds ComputePreambleBounds(const LangOptions &LangOpts,
llvm::MemoryBuffer *Buffer,
const llvm::MemoryBuffer *Buffer,
unsigned MaxLines);

class PreambleCallbacks;
Expand Down
2 changes: 1 addition & 1 deletion clang/lib/Frontend/PrecompiledPreamble.cpp
Expand Up @@ -228,7 +228,7 @@ template <class T> bool moveOnNoError(llvm::ErrorOr<T> Val, T &Output) {
} // namespace

PreambleBounds clang::ComputePreambleBounds(const LangOptions &LangOpts,
llvm::MemoryBuffer *Buffer,
const llvm::MemoryBuffer *Buffer,
unsigned MaxLines) {
return Lexer::ComputePreamble(Buffer->getBuffer(), LangOpts, MaxLines);
}
Expand Down

0 comments on commit 61b9670

Please sign in to comment.