https://bugs.llvm.org/show_bug.cgi?id=35892
Bug ID: 35892
Summary: Global variable always appears null
Product: libraries
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: DebugInfo
Assignee: unassignedb...@nondot.org
Reporter: ztur...@google.com
CC: amcca...@google.com, llvm-bugs@lists.llvm.org,
l...@inglorion.net, r...@google.com
Generate CMake like this:
cmake -G Ninja -DLLVM_ENABLE_PROJECTS="clang;lld" -DLLVM_TARGETS_TO_BUILD=X86
-DCMAKE_BUILD_TYPE=Debug
-DCMAKE_C_COMPILER=D:/src/llvmbuild/cl/Release/x64/bin/clang-cl.exe
-DCMAKE_CXX_COMPILER=D:/src/llvmbuild/cl/Release/x64/bin/clang-cl.exe
..\..\..\..\llvm-mono\llvm
This self-hosts using clang + msvc linker.
Now debug lld in Visual Studio, putting a breakpoint in Writer::run(). On the
first line, try to print the value of `Config`. It says the value is null.
However, it's obvious from inspecting the code that the value cannot possibly
be null or else the program would crash. So we have some bad debug info here.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs