<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 03/31/2015 09:52 PM, Philip Reames
wrote:<br>
</div>
<blockquote cite="mid:551B79A6.9040208@philipreames.com" type="cite">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<br>
<blockquote
cite="mid:CAMxMwyJsi4dT7Wc8bMH2fn2O1agU7bKcr71jzJ3WPob61LSuUw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>Maybe it is because I'm using a package that makes an
LLVM DLL for Windows.</div>
<div><br>
</div>
<div>The only reason why it show that error is if the static
constructor for it didn't run, right? And I don't know why
it would not run.</div>
</div>
</blockquote>
I need to take a closer look at your bug report before I can
really comment. </blockquote>
Ok, I took a look. Its hard for me to tell much from your report.
I don't have Visual Studios (or Windows for that matter) and can't
easily reproduce. <br>
<br>
It would really help to know if this is a problem with the C
bindings or the generated IR. If you manually create the expected
IR and run it through opt/llc, does that work?<br>
<br>
Can you include the full output of this example? Both the IR and
the error would be useful to see. <br>
<br>
One observation, it looks like you're using the erlang GC not shadow
stack? e.g. <br>
LLVM.SetGC(sum, "erlang");<br>
<br>
Philip<br>
<br>
</body>
</html>