Don't store a Twine temporary, it's unsafe.

llvm-svn: 94003
This commit is contained in:
Benjamin Kramer 2010-01-20 16:18:11 +00:00
parent 35dca86659
commit c1a62aa67d
1 changed files with 6 additions and 4 deletions

View File

@ -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.