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

            Bug ID: 41662
           Summary: llvm.orc.CtorDtorRunner.run - unreachable code
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: OrcJIT
          Assignee: unassignedb...@nondot.org
          Reporter: llvm-...@redking.me.uk
                CC: 1101.deb...@gmail.com, lha...@gmail.com,
                    llvm-bugs@lists.llvm.org
            Blocks: 41655

Reported in https://www.viva64.com/en/b/0629/

Error CtorDtorRunner::run() {
  ....
  if (auto CtorDtorMap =
          ES.lookup(JITDylibSearchList({{&JD, true}}), std::move(Names),
                    NoDependenciesToRegister, true))
  {
    ....
    return Error::success();
  } else
    return CtorDtorMap.takeError();

  CtorDtorsByPriority.clear();

  return Error::success();
}

Everything after the if-else is unreachable

Introduced by @lhames at rL335670 + rL335677


Referenced Bugs:

https://bugs.llvm.org/show_bug.cgi?id=41655
[Bug 41655] Finding Bugs in LLVM 8 with PVS-Studio
-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to