File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 14
14
//
15
15
// ===----------------------------------------------------------------------===//
16
16
17
+ #include " swift/Basic/LLVMInitialize.h"
17
18
#include " swift/DependencyScan/DependencyScanImpl.h"
18
19
#include " swift/DependencyScan/DependencyScanningTool.h"
19
20
#include " swift/DependencyScan/StringUtils.h"
@@ -104,6 +105,7 @@ void swiftscan_dependency_set_dispose(swiftscan_dependency_set_t *set) {
104
105
// === Scanner Functions ---------------------------------------------------===//
105
106
106
107
swiftscan_scanner_t swiftscan_scanner_create (void ) {
108
+ INITIALIZE_LLVM ();
107
109
return wrap (new DependencyScanningTool ());
108
110
}
109
111
@@ -153,13 +155,16 @@ swiftscan_batch_scan_result_create(swiftscan_scanner_t scanner,
153
155
auto ResultGraphs = new swiftscan_dependency_graph_t [BatchScanResult.size ()];
154
156
for (size_t i = 0 ; i < BatchScanResult.size (); ++i) {
155
157
auto &ResultOrErr = BatchScanResult[i];
156
- if (ResultOrErr.getError ())
158
+ if (ResultOrErr.getError ()) {
157
159
ResultGraphs[i] = nullptr ;
160
+ continue ;
161
+ }
158
162
159
163
ResultGraphs[i] = ResultOrErr.get ();
160
164
}
161
165
162
166
Result->results = ResultGraphs;
167
+ Result->count = BatchScanResult.size ();
163
168
return Result;
164
169
}
165
170
You can’t perform that action at this time.
0 commit comments