]> git.cworth.org Git - apitrace/blobdiff - common/trace_model.hpp
Correctly copy "out" arguments to the "leave" portion of the trace
[apitrace] / common / trace_model.hpp
index 076ff098d61f9fa25edf72a80aef7c4796663d9f..7973026cd9b07884af719feefd3b7ed72ed1a2cc 100644 (file)
@@ -406,6 +406,11 @@ enum {
 };
 
 
+struct Arg
+{
+    Value *value;
+};
+
 
 class Call
 {
@@ -413,7 +418,7 @@ public:
     unsigned thread_id;
     unsigned no;
     const FunctionSig *sig;
-    std::vector<Value *> args;
+    std::vector<Arg> args;
     Value *ret;
 
     CallFlags flags;
@@ -434,7 +439,7 @@ public:
 
     inline Value & arg(unsigned index) {
         assert(index < args.size());
-        return *(args[index]);
+        return *(args[index].value);
     }
 };