forked from OSchip/llvm-project
Don't store a Twine temporary, it's unsafe.
llvm-svn: 94003
This commit is contained in:
parent
35dca86659
commit
c1a62aa67d
|
@ -189,10 +189,12 @@ void InitHeaderSearch::AddGnuCPlusPlusIncludePaths(llvm::StringRef Base,
|
||||||
void InitHeaderSearch::AddMinGWCPlusPlusIncludePaths(llvm::StringRef Base,
|
void InitHeaderSearch::AddMinGWCPlusPlusIncludePaths(llvm::StringRef Base,
|
||||||
llvm::StringRef Arch,
|
llvm::StringRef Arch,
|
||||||
llvm::StringRef Version) {
|
llvm::StringRef Version) {
|
||||||
llvm::Twine localBase = Base + "/" + Arch + "/" + Version + "/include";
|
AddPath(Base + "/" + Arch + "/" + Version + "/include",
|
||||||
AddPath(localBase, System, true, false, false);
|
System, true, false, false);
|
||||||
AddPath(localBase + "/c++", System, true, false, false);
|
AddPath(Base + "/" + Arch + "/" + Version + "/include/c++",
|
||||||
AddPath(localBase + "/c++/backward", System, true, false, false);
|
System, true, false, false);
|
||||||
|
AddPath(Base + "/" + Arch + "/" + Version + "/include/c++/backward",
|
||||||
|
System, true, false, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: This probably should goto to some platform utils place.
|
// FIXME: This probably should goto to some platform utils place.
|
||||||
|
|
Loading…
Reference in New Issue