Change the way to manage the variables and operations:
[scilab.git] / scilab / modules / jit / src / cpp / llvm-wrapper.cpp
index a8cefaf..95b109b 100644 (file)
@@ -21,6 +21,9 @@ int foo()
 {
     types::Double* pdbl1 = types::Double::Empty();
     int res = AddDoubleToDouble(pdbl1, pdbl1, &pdbl1);
+    symbol::Symbol * sym = 0;// = symbol::Symbol(L"a"); => This declaration makes llc fails
+
+    symbol::Context::getInstance()->put(*sym, *pdbl1);
 
     return res;
 }