<p dir="ltr">Hi,</p>
<p dir="ltr">> an error which I an unable to resolve and understand:<br>
>  <br>
> llvm-dis: invalid module_code_globalvar record</p>
<p dir="ltr">As a first step you can try emitting LLVM assembly directly rather than using llvm-dis</p>
<p dir="ltr">$ clang -O3 -emit-llvm hello.c -S -o hello.ll</p>
<p dir="ltr">> Hoping for an early response.</p>
<p dir="ltr">You're more likely to get help if you provide more information.</p>
<p dir="ltr">* What version of LLVM and clang are you using? E.g. from trunk? You should also be careful not to mix LLVM and clang versions (e.g. a bitcode file produced by clang 3.2 might not work properly with LLVM 3.4)</p>

<p dir="ltr">* What are the contents of hello.c?<br>
If you don't provide the source file nobody apart from you can try to reproduce the issue.</p>
<p dir="ltr">Thanks,<br>
Dan<br>
</p>