title: Extract temporary from LLVM callInst
body: <p>From the following example call:</p>
  
  <pre><code>call void %4(%class.EtherAppReq* %2, i64 %5)
  </code></pre>
  
  <p>I want to extract the temporary %4 to pass it as an argument of another function. To do this, I need it as Value class object. How could I do it?</p>
  
  <pre><code> Value *target = call-&gt;getCalledValue();
   Value *args[] = {point, target};
   Builder.CreateCall(func, args);
  </code></pre>
  
  <p>It caused a segmentation fault because of target.</p>