aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2024-01-12 18:39:49 -0800
committerKazu Hirata <kazu@google.com>2024-01-12 18:39:49 -0800
commiteccd279979ac210248cdf7d583169df6a8e552bd (patch)
tree74efae288ce0a1f860106c638d420d26f60de89d /clang/lib/Frontend/CompilerInstance.cpp
parent15179aa433dfb50e025ee054aea50f428933bb22 (diff)
downloadllvm-eccd279979ac210248cdf7d583169df6a8e552bd.zip
llvm-eccd279979ac210248cdf7d583169df6a8e552bd.tar.gz
llvm-eccd279979ac210248cdf7d583169df6a8e552bd.tar.bz2
[clang] Use SmallString::operator std::string() (NFC)
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index 56bbef9..6df5521 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -2204,7 +2204,7 @@ void CompilerInstance::createModuleFromSource(SourceLocation ImportLoc,
// Build the module, inheriting any modules that we've built locally.
if (compileModuleImpl(*this, ImportLoc, ModuleName, Input, StringRef(),
ModuleFileName, PreBuildStep, PostBuildStep)) {
- BuiltModules[std::string(ModuleName)] = std::string(ModuleFileName.str());
+ BuiltModules[std::string(ModuleName)] = std::string(ModuleFileName);
llvm::sys::RemoveFileOnSignal(ModuleFileName);
}
}