mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-03 00:20:40 +03:00
Fix StringRef conversion for LLVM 11 (777180a32b61070a10dd330b4f038bf24e916af1) (#3305)
This commit is contained in:
parent
97e0d978ee
commit
0a007a55f8
13 changed files with 31 additions and 28 deletions
|
@ -60,7 +60,7 @@ void addLibIfFound(std::vector<std::string> &args, const llvm::Twine &name) {
|
|||
llvm::SmallString<128> candidate(dir);
|
||||
llvm::sys::path::append(candidate, name);
|
||||
if (llvm::sys::fs::exists(candidate)) {
|
||||
args.push_back(candidate.str());
|
||||
args.emplace_back(candidate.data(), candidate.size());
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue