[LLVMdev] clang produces invalid debug info? (warning: invalid debug metadata version)

Anton Korobeynikov anton at korobeynikov.info
Fri Jan 24 11:58:15 PST 2014


Most probably your clang version does not correspond to your llvm-dis.

On Fri, Jan 24, 2014 at 11:25 PM, Yuri <yuri at rawbw.com> wrote:
> I run this simple command:
> (echo "void f() {}" > m.c) && clang -g -c -emit-llvm m.c -o m.bc && llvm-dis
> m.bc
> and it produces a warning:
> warning: invalid debug metadata version (0) in m.bc
> and resulting m.ll has no debug info.
>
> From the source code I can see that clang might have not placed the proper
> version constant DEBUG_METADATA_VERSION into one of the debug record
> objects.
>
> Do you care to fix this warning? Or maybe there is a bug in my testcase?
>
> rev.199626
>
> Yuri
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev



-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-dev mailing list