File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
clang/include/clang/Tooling/DependencyScanning Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -208,13 +208,15 @@ class CallbackActionController : public DependencyActionController {
208
208
public:
209
209
virtual ~CallbackActionController ();
210
210
211
+ static std::string lookupUnreachableModuleOutput (const ModuleDeps &MD,
212
+ ModuleOutputKind Kind) {
213
+ llvm::report_fatal_error (" unexpected call to lookupModuleOutput" );
214
+ };
215
+
211
216
CallbackActionController (LookupModuleOutputCallback LMO)
212
217
: LookupModuleOutput(std::move(LMO)) {
213
218
if (!LookupModuleOutput) {
214
- LookupModuleOutput = [](const ModuleDeps &,
215
- ModuleOutputKind) -> std::string {
216
- llvm::report_fatal_error (" unexpected call to lookupModuleOutput" );
217
- };
219
+ LookupModuleOutput = lookupUnreachableModuleOutput;
218
220
}
219
221
}
220
222
You can’t perform that action at this time.
0 commit comments