Skip to content

Commit

Permalink
Fix variable mismatch between signature and body
Browse files Browse the repository at this point in the history
I updated the signature to conform to the LLDB coding style but
accidentally forgot to update the function body.

llvm-svn: 368962
  • Loading branch information
JDevlieghere committed Aug 15, 2019
1 parent 9cf1eab commit 706cd70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lldb/source/Utility/FileSpec.cpp
Expand Up @@ -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() {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 706cd70

Please sign in to comment.