Author: Jonas Devlieghere
Date: 2019-12-04T18:20:20-08:00
New Revision: 6ee96ddec89774a534ec93de7266a0bf38de07e8

URL: 
https://github.com/llvm/llvm-project/commit/6ee96ddec89774a534ec93de7266a0bf38de07e8
DIFF: 
https://github.com/llvm/llvm-project/commit/6ee96ddec89774a534ec93de7266a0bf38de07e8.diff

LOG: [lldb/Reproducers] Add missing instrumentation for SBFile (2/2)

Found another issue while running TestDefaultConstructorForAPIObjects.

Added: 
    

Modified: 
    lldb/source/API/SBFile.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/API/SBFile.cpp b/lldb/source/API/SBFile.cpp
index 215e82cd46ac..277402f31abf 100644
--- a/lldb/source/API/SBFile.cpp
+++ b/lldb/source/API/SBFile.cpp
@@ -100,17 +100,17 @@ SBError SBFile::Close() {
 
 SBFile::operator bool() const {
   LLDB_RECORD_METHOD_CONST_NO_ARGS(bool, SBFile, operator bool);
-  return LLDB_RECORD_RESULT(IsValid());
+  return IsValid();
 }
 
 bool SBFile::operator!() const {
   LLDB_RECORD_METHOD_CONST_NO_ARGS(bool, SBFile, operator!);
-  return LLDB_RECORD_RESULT(!IsValid());
+  return !IsValid();
 }
 
 FileSP SBFile::GetFile() const {
   LLDB_RECORD_METHOD_CONST_NO_ARGS(FileSP, SBFile, GetFile);
-  return m_opaque_sp;
+  return LLDB_RECORD_RESULT(m_opaque_sp);
 }
 
 namespace lldb_private {


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to