diff options
Diffstat (limited to 'llvm/tools/llvm-cfi-verify/llvm-cfi-verify.cpp')
| -rw-r--r-- | llvm/tools/llvm-cfi-verify/llvm-cfi-verify.cpp | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/llvm/tools/llvm-cfi-verify/llvm-cfi-verify.cpp b/llvm/tools/llvm-cfi-verify/llvm-cfi-verify.cpp index a3c202f53bb..3b4a5c155d0 100644 --- a/llvm/tools/llvm-cfi-verify/llvm-cfi-verify.cpp +++ b/llvm/tools/llvm-cfi-verify/llvm-cfi-verify.cpp @@ -132,8 +132,10 @@ void printIndirectCFInstructions(FileAnalysis &Analysis,    uint64_t IndirectCFInstructions = ExpectedProtected + UnexpectedProtected +                                      ExpectedUnprotected + UnexpectedUnprotected; -  if (IndirectCFInstructions == 0) +  if (IndirectCFInstructions == 0) {      outs() << "No indirect CF instructions found.\n"; +    return; +  }    outs() << formatv("Expected Protected: {0} ({1:P})\n"                      "Unexpected Protected: {2} ({3:P})\n" | 

