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

Found another issue while running TestDefaultConstructorForAPIObjects.
This commit is contained in:
Jonas Devlieghere
2019-12-04 17:49:34 -08:00
parent 3d43c73f26
commit 6ee96ddec8

View File

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