[Lldb-commits] [lldb] r368962 - Fix variable mismatch between signature and body

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 14 22:09:09 PDT 2019


Author: jdevlieghere
Date: Wed Aug 14 22:09:09 2019
New Revision: 368962

URL: http://llvm.org/viewvc/llvm-project?rev=368962&view=rev
Log:
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.

Modified:
    lldb/trunk/source/Utility/FileSpec.cpp

Modified: lldb/trunk/source/Utility/FileSpec.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Utility/FileSpec.cpp?rev=368962&r1=368961&r2=368962&view=diff
==============================================================================
--- lldb/trunk/source/Utility/FileSpec.cpp (original)
+++ lldb/trunk/source/Utility/FileSpec.cpp Wed Aug 14 22:09:09 2019
@@ -73,7 +73,7 @@ FileSpec::FileSpec(llvm::StringRef path,
 }
 
 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 p
     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




More information about the lldb-commits mailing list