[llvm-dev] Crash in Accessing Arguments of Cloned Function with LazyArgs

26 views
Skip to first unread message

Mahesh Attarde via llvm-dev

unread,
Jan 24, 2022, 1:08:57 PM1/24/22
to llvm-dev
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
Reply all
Reply to author
Forward
0 new messages