Issue 179658
Summary llvm-cov reports incorrect coverage when JMP is present in code
Labels new issue
Assignees
Reporter ankurrj7
    llvm-cov show --instr-profile="" myapp
    1|       |#include <stdio.h>
    2|       |#include <setjmp.h>
 3|       |
    4|      1|int main() {
    5|      1|    jmp_buf env;
 6|       |
    7|      1|    if (setjmp(env) == 0) {
    8|      1| printf("first\n");
    9|      1|        longjmp(env, 1);
   10|      1| } else {
   11|      0|        printf("second\n");
   12|      0| }
   13|      1|}
   14|       |

runnig this program clealry shows 
./myapp
first <<-- first printf is hit
second ,< -- second printf is hit

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to