[llvm-dev] Crash in Accessing Arguments of Cloned Function with LazyArgs
Mahesh Attarde via llvm-dev
llvm-dev at lists.llvm.org
Mon Jan 24 10:08:37 PST 2022
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>
More information about the llvm-dev
mailing list