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 {
208208public:
209209 virtual ~CallbackActionController ();
210210
211+ static std::string lookupUnreachableModuleOutput (const ModuleDeps &MD,
212+ ModuleOutputKind Kind) {
213+ llvm::report_fatal_error (" unexpected call to lookupModuleOutput" );
214+ };
215+
211216 CallbackActionController (LookupModuleOutputCallback LMO)
212217 : LookupModuleOutput(std::move(LMO)) {
213218 if (!LookupModuleOutput) {
214- LookupModuleOutput = [](const ModuleDeps &,
215- ModuleOutputKind) -> std::string {
216- llvm::report_fatal_error (" unexpected call to lookupModuleOutput" );
217- };
219+ LookupModuleOutput = lookupUnreachableModuleOutput;
218220 }
219221 }
220222
You can’t perform that action at this time.
0 commit comments