Added a SemaConsumer that transforms the ASTs for
an expression, adding code to put the value of the
last expression (if there is one) into a variable
and write the address of that variable to a global
pointer.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@107419 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Commands/CommandObjectExpression.cpp b/source/Commands/CommandObjectExpression.cpp
index e98303c..64106ed 100644
--- a/source/Commands/CommandObjectExpression.cpp
+++ b/source/Commands/CommandObjectExpression.cpp
@@ -233,7 +233,7 @@
     if (bare)
         num_errors = clang_expr.ParseBareExpression (llvm::StringRef (expr), error_stream);
     else
-        num_errors = clang_expr.ParseExpression (expr, error_stream);
+        num_errors = clang_expr.ParseExpression (expr, error_stream, m_options.use_ir);
 
     if (num_errors)
     {