Skip to content

Commit 49ac4f5

Browse files
committed
Fix two bugs in Driver.cs
1 parent 1bb086d commit 49ac4f5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: src/Generator/Driver.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ public bool ParseLibraries()
173173
using var res = ClangParser.ParseLibrary(linkerOptions);
174174
if (res.Kind != ParserResultKind.Success)
175175
{
176-
res.Dispose();
177176
continue;
178177
}
179178

@@ -454,7 +453,7 @@ public static bool Run(ILibrary library)
454453

455454
driver.SaveCode(outputs);
456455
if (driver.Options.IsCSharpGenerator && driver.Options.CompileCode)
457-
driver.Options.Modules.Any(m => !driver.CompileCode(m));
456+
return driver.Options.Modules.Any(m => !driver.CompileCode(m));
458457

459458
return true;
460459
}

0 commit comments

Comments
 (0)