[LLVMbugs] [Bug 10887] New: Debug Info Metadata gets corrupted after linking .bc files
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Sep 8 05:06:16 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=10887
Summary: Debug Info Metadata gets corrupted after linking .bc
files
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: barto at gmx.net
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=7242)
--> (http://llvm.org/bugs/attachment.cgi?id=7242)
Files to reproduce
Windows XP, MSVC 2008
LLVM SVN revision: 138553
clang SVN revision: 138538
I have as input 2 .ll files (It doesn't matter if they're generated by clang or
my own frontend) After linking them together (either with llvm-link or
llvm::Linker::LinkInFiles), only the first file retains correct
llvm.dbg.declare/metadata. The second file just references null metadata.
Correct:
call void @llvm.dbg.declare(metadata !{i8** %arg0.addr}, metadata !19), !dbg
!22
Incorrect:
call void @llvm.dbg.declare(metadata !18, metadata !29), !dbg !30
!18 = metadata !{null}
Attached are 2 repro-cases:
"1.cmd" contains the steps necessary to reproduce behavior with sample files
from my own front-end. Final output file: output1.ll
"2.cmd" contains sample files for clang. Final output file: output2.ll
E.g. in output2.ll you can see correct debug info in lines 10 and 11, and
corrupt in lines 23 and 24.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list