This revision was automatically updated to reflect the committed changes.
Closed by commit rG0db2934b0fa9: [ASTImporter] Modify ImportDefiniton for
ObjCInterfaceDecl so that we always… (authored by shafik).
Herald added projects: clang, LLDB.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83972/new/
https://reviews.llvm.org/D83972
Files:
clang/lib/AST/ASTImporter.cpp
lldb/test/API/lang/objc/bitfield_ivars/TestBitfieldIvars.py
Index: lldb/test/API/lang/objc/bitfield_ivars/TestBitfieldIvars.py
===================================================================
--- lldb/test/API/lang/objc/bitfield_ivars/TestBitfieldIvars.py
+++ lldb/test/API/lang/objc/bitfield_ivars/TestBitfieldIvars.py
@@ -14,9 +14,8 @@
lldbutil.run_to_source_breakpoint(self, "// break here",
lldb.SBFileSpec("main.m"))
self.expect_expr("chb->hb->field1", result_type="unsigned int",
result_value="0")
-
- ## FIXME field2 should have a value of 1
- self.expect("expr chb->hb->field2", matching=False, substrs = ["= 1"])
# this must happen second
+ ## This should happen second
+ self.expect_expr("chb->hb->field2", result_type="unsigned int",
result_value="1")
self.expect_expr("hb2->field1", result_type="unsigned int",
result_value="10")
self.expect_expr("hb2->field2", result_type="unsigned int",
result_value="3")
Index: clang/lib/AST/ASTImporter.cpp
===================================================================
--- clang/lib/AST/ASTImporter.cpp
+++ clang/lib/AST/ASTImporter.cpp
@@ -4758,11 +4758,10 @@
return ToImplOrErr.takeError();
}
- if (shouldForceImportDeclContext(Kind)) {
- // Import all of the members of this class.
- if (Error Err = ImportDeclContext(From, /*ForceImport=*/true))
- return Err;
- }
+ // Import all of the members of this class.
+ if (Error Err = ImportDeclContext(From, /*ForceImport=*/true))
+ return Err;
+
return Error::success();
}
Index: lldb/test/API/lang/objc/bitfield_ivars/TestBitfieldIvars.py
===================================================================
--- lldb/test/API/lang/objc/bitfield_ivars/TestBitfieldIvars.py
+++ lldb/test/API/lang/objc/bitfield_ivars/TestBitfieldIvars.py
@@ -14,9 +14,8 @@
lldbutil.run_to_source_breakpoint(self, "// break here", lldb.SBFileSpec("main.m"))
self.expect_expr("chb->hb->field1", result_type="unsigned int", result_value="0")
-
- ## FIXME field2 should have a value of 1
- self.expect("expr chb->hb->field2", matching=False, substrs = ["= 1"]) # this must happen second
+ ## This should happen second
+ self.expect_expr("chb->hb->field2", result_type="unsigned int", result_value="1")
self.expect_expr("hb2->field1", result_type="unsigned int", result_value="10")
self.expect_expr("hb2->field2", result_type="unsigned int", result_value="3")
Index: clang/lib/AST/ASTImporter.cpp
===================================================================
--- clang/lib/AST/ASTImporter.cpp
+++ clang/lib/AST/ASTImporter.cpp
@@ -4758,11 +4758,10 @@
return ToImplOrErr.takeError();
}
- if (shouldForceImportDeclContext(Kind)) {
- // Import all of the members of this class.
- if (Error Err = ImportDeclContext(From, /*ForceImport=*/true))
- return Err;
- }
+ // Import all of the members of this class.
+ if (Error Err = ImportDeclContext(From, /*ForceImport=*/true))
+ return Err;
+
return Error::success();
}
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits