summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--interceptor/analysis.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/interceptor/analysis.cc b/interceptor/analysis.cc
index 1527a43..03292af 100644
--- a/interceptor/analysis.cc
+++ b/interceptor/analysis.cc
@@ -133,6 +133,10 @@ void compdb_to_file(const interceptor::Log& log, const fs::path& output) {
interceptor::CompilationDatabase compdb;
for (const auto& command : log.commands()) {
+ if (command.arguments().empty()) {
+ continue;
+ }
+
// skip anything that is not a compiler invocation
if (!kCompilers.count(fs::path(command.arguments(0)).filename().native())) {
continue;