[llvm-bugs] [Bug 41662] New: llvm.orc.CtorDtorRunner.run - unreachable code

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Apr 29 15:03:42 PDT 2019


            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: unassignedbugs at nondot.org
          Reporter: llvm-dev at redking.me.uk
                CC: 1101.debian at gmail.com, lhames at gmail.com,
                    llvm-bugs at 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();


  return Error::success();

Everything after the if-else is unreachable

Introduced by @lhames at rL335670 + rL335677

Referenced Bugs:

[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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190429/65fcdd58/attachment-0001.html>

More information about the llvm-bugs mailing list