Fix variable mismatch between signature and body

I updated the signature to conform to the LLDB coding style but
accidentally forgot to update the function body.

llvm-svn: 368962
This commit is contained in:
Jonas Devlieghere
2019-08-15 05:09:09 +00:00
parent 9cf1eab73e
commit 706cd70569

View File

@@ -73,7 +73,7 @@ FileSpec::FileSpec(llvm::StringRef path, Style style) : m_style(style) {
}
FileSpec::FileSpec(llvm::StringRef path, const llvm::Triple &triple)
: FileSpec{path, Triple.isOSWindows() ? Style::windows : Style::posix} {}
: FileSpec{path, triple.isOSWindows() ? Style::windows : Style::posix} {}
// Copy constructor
FileSpec::FileSpec(const FileSpec *rhs) : m_directory(), m_filename() {
@@ -228,8 +228,8 @@ void FileSpec::SetFile(llvm::StringRef pathname, Style style) {
m_directory.SetString(directory);
}
void FileSpec::SetFile(llvm::StringRef path, const llvm::Triple &Triple) {
return SetFile(path, Triple.isOSWindows() ? Style::windows : Style::posix);
void FileSpec::SetFile(llvm::StringRef path, const llvm::Triple &triple) {
return SetFile(path, triple.isOSWindows() ? Style::windows : Style::posix);
}
// Convert to pointer operator. This allows code to check any FileSpec objects