Skip to content

Commit 2a19669

Browse files
committed
Check variables in libObjEmpty method
1 parent c1c1852 commit 2a19669

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bindgen/ir/IR.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void IR::addVarDefine(std::string name, std::shared_ptr<Variable> variable) {
6666

6767
bool IR::libObjEmpty() const {
6868
return functions.empty() && typeDefs.empty() && structs.empty() &&
69-
unions.empty() && varDefines.empty();
69+
unions.empty() && varDefines.empty() && variables.empty();
7070
}
7171

7272
llvm::raw_ostream &operator<<(llvm::raw_ostream &s, const IR &ir) {

0 commit comments

Comments
 (0)