https://llvm.org/bugs/show_bug.cgi?id=29043

            Bug ID: 29043
           Summary: -Rpass* options are ignored with -save-temps
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

/org/llvm/build? cat /tmp/s.c
__attribute__((noinline)) int f() {
  return 1;
}

int g() {
  return f() + 4;
}
/org/llvm/build? ./bin/clang /tmp/s.c -O0 -Rpass-missed=. -c
/tmp/s.c:6:10: remark: f will not be inlined into g [-Rpass-missed=inline]
  return f() + 4;
         ^
/org/llvm/build? ./bin/clang /tmp/s.c -O0 -Rpass-missed=. -c -save-temps
/org/llvm/build?


In this case EmitBackendOutput is called in CodeGenAction::ExecuteAction which
does not set up the DiagnosticHandler.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to