This exposes more MCJIT options via the C API:
[oota-llvm.git] / unittests / ExecutionEngine / MCJIT / MCJITCAPITest.cpp
index 8dd5795dc554efe60f462ee25e7e9e436202e5ac..d8cf6c592d3b3e91000a6bef6ecbfa7a38b67fad 100644 (file)
@@ -64,7 +64,7 @@ TEST_F(MCJITCAPITest, simple_function) {
   LLVMDisposeBuilder(builder);
   
   LLVMMCJITCompilerOptions options;
-  memset(&options, 0, sizeof(options));
+  LLVMInitializeMCJITCompilerOptions(&options, sizeof(options));
   options.OptLevel = 2;
   
   // Just ensure that this field still exists.