title: How to make llvm jit work in MSVC++
body: <p>It appears that Kaleidoscope example in LLVM has been broken, at least in MSVC++ x64 for a quite while, maybe several months. It doesn't work in MCJIT and in their new Orc JIT framework for a same reason.</p>
  
  <pre><code>// Get the address of the JIT'd function in memory.
  auto ExprSymbol = J.findUnmangledSymbol("__anon_expr");
  </code></pre>
  
  <p>This expression returns null and cause null pointer error as a result. I can't guess how to make workaround at this moment because call tree is too deep there and may require ~few days of debugging. But in theory, this code is educational and shouldn't cause trouble for newcomers. So maybe i'm doing something wrong.</p>