Patch from Filipe!

One fixes a trailing comma bug (g++ doesn't like them)
The other gets the Error from the result of an expression evaluation and uses it as the error for the Process::LoadImage() method.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@139336 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Target/Process.cpp b/source/Target/Process.cpp
index 8f57d1c..52fd857 100644
--- a/source/Target/Process.cpp
+++ b/source/Target/Process.cpp
@@ -1155,7 +1155,8 @@
                 const char *prefix = "extern \"C\" void* dlopen (const char *path, int mode);\n";
                 lldb::ValueObjectSP result_valobj_sp;
                 ClangUserExpression::Evaluate (exe_ctx, unwind_on_error, expr.GetData(), prefix, result_valobj_sp);
-                if (result_valobj_sp->GetError().Success())
+                error = result_valobj_sp->GetError();
+                if (error.Success())
                 {
                     Scalar scalar;
                     if (result_valobj_sp->ResolveValue (scalar))