diff --git a/tools/llvm-pta-dump.cpp b/tools/llvm-pta-dump.cpp index 44cdfd859..28f9f6966 100644 --- a/tools/llvm-pta-dump.cpp +++ b/tools/llvm-pta-dump.cpp @@ -781,6 +781,11 @@ int main(int argc, char *argv[]) { callgraph = true; } + if (todot && !dump_ir) { + llvm::errs() << "Switch -dot requires -ir, switching -ir on."; + dump_ir = true; + } + llvm::LLVMContext context; std::unique_ptr M = parseModule("llvm-pta-dump", context, options);