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

            Bug ID: 41279
           Summary: Crash with SEH and -fprofile-generate
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected], [email protected]

Reproducer:

void f() {
  __try { f(); }
  __except (1) { return; }
  __try { f(); }
  __except (1) { }
}

clang-cl.exe -O2 -clang:-fprofile-generate -c test.cpp

Here's the stack though I'm not sure how much it helps, given the inlining in
my release build:

00 clang!`anonymous namespace'::PruneEH::runOnSCC
01 clang!`anonymous namespace'::CGPassManager::runOnModule
02 clang!llvm::legacy::PassManagerImpl::run
03 clang!clang::EmitBackendOutput
04 clang!clang::BackendConsumer::HandleTranslationUnit
05 clang!clang::ParseAST

I wonder if this is the PGO-analogue to the SEH gcov crash in bug 34833.

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

Reply via email to