aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorVlad Serebrennikov <serebrennikov.vladislav@gmail.com>2024-05-18 12:10:06 +0300
committerVlad Serebrennikov <serebrennikov.vladislav@gmail.com>2024-05-18 12:10:39 +0300
commitf7b0b99c52ee36ed6ca8abcce74a752e483768d6 (patch)
treeca478538482715db9b1faf9bbb023c4ac3945b31 /clang/lib/Frontend/CompilerInstance.cpp
parent2c2e0507e92bdb77a01828f899ff59e44492b537 (diff)
downloadllvm-f7b0b99c52ee36ed6ca8abcce74a752e483768d6.zip
llvm-f7b0b99c52ee36ed6ca8abcce74a752e483768d6.tar.gz
llvm-f7b0b99c52ee36ed6ca8abcce74a752e483768d6.tar.bz2
[clang][NFC] Further improvements to const-correctness
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index 66a45b8..6242b5a 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -411,8 +411,7 @@ static void InitializeFileRemapping(DiagnosticsEngine &Diags,
SourceMgr.overrideFileContents(FromFile, RB.second->getMemBufferRef());
else
SourceMgr.overrideFileContents(
- FromFile, std::unique_ptr<llvm::MemoryBuffer>(
- const_cast<llvm::MemoryBuffer *>(RB.second)));
+ FromFile, std::unique_ptr<llvm::MemoryBuffer>(RB.second));
}
// Remap files in the source manager (with other files).