<div dir="ltr">I Cloned llvm::Function using  CloneFunction from Transforms.<div>While accessing new arguments of function i keep getting crash for </div><div><br></div><div>#5  llvm::Value::getSubclassDataFromValue() const llvm/include/llvm/IR/Value.h:659:60<br>#6  llvm::Function::hasLazyArguments() const llvm/include/llvm/IR/Function.h:111:36<br>#7  llvm::Function::CheckLazyArguments() const llvm/include/llvm/IR/Function.h:116:5<br>#8  llvm::Function::arg_begin() llvm/include/llvm/IR/Function.h:656:12<br></div><div><br></div><div>While debugging it appears to be Value Class that produced error. I could not make sense out of this build logic.  </div><div>Can you help?</div><div><br></div><div>Mahesh</div></div>