Mahesh Attarde via llvm-dev
2022-Jan-24 18:08 UTC
[llvm-dev] Crash in Accessing Arguments of Cloned Function with LazyArgs
I Cloned llvm::Function using CloneFunction from Transforms. While accessing new arguments of function i keep getting crash for #5 llvm::Value::getSubclassDataFromValue() const llvm/include/llvm/IR/Value.h:659:60 #6 llvm::Function::hasLazyArguments() const llvm/include/llvm/IR/Function.h:111:36 #7 llvm::Function::CheckLazyArguments() const llvm/include/llvm/IR/Function.h:116:5 #8 llvm::Function::arg_begin() llvm/include/llvm/IR/Function.h:656:12 While debugging it appears to be Value Class that produced error. I could not make sense out of this build logic. Can you help? Mahesh -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20220124/ed0450ce/attachment.html>