[llvm-bugs] [Bug 51210] New: Missing SourceMgr when computing ThinLTO ModuleSummary with inline asm
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Jul 25 12:26:45 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=51210
Bug ID: 51210
Summary: Missing SourceMgr when computing ThinLTO ModuleSummary
with inline asm
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: MC
Assignee: unassignedbugs at nondot.org
Reporter: nikita.ppv at gmail.com
CC: llvm-bugs at lists.llvm.org, yuanfang.chen at sony.com
target triple = "x86_64-unknown-unknown"
module asm "foo bar"
opt -module-summary -enable-new-pm=0 < test.ll > test.bc
Either SourceMgr should be available
UNREACHABLE executed at /home/nikic/llvm-project/llvm/lib/MC/MCContext.cpp:913!
This is presumably caused by
https://github.com/llvm/llvm-project/commit/5de2d189e6ad466a1f0616195e8c524a4eb3cbc0.
The InlineSourceMgr seems to only get initialized when using the AsmPrinter,
not when using the AsmParser, which is used by ModuleSummaryAnalysis.
--
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/20210725/42979446/attachment.html>
More information about the llvm-bugs
mailing list