UBGen icon indicating copy to clipboard operation
UBGen copied to clipboard

A bug when I use LLVM17

Open yyy1mu opened this issue 10 months ago • 1 comments

I use the kali system and install llvm17 by apt ./build.sh then i meet the error

""" /home/kali/Documents/UBGen/dynamic_analyzer/src/RuleActionCallback.cpp:74:61: error: request for member ‘Edits’ in ‘clang::transformer::detail::findSelectedCase((* & Result), ((ruleactioncallback::RuleActionCallback*)this)->ruleactioncallback::RuleActionCallback::Rule.clang::transformer::RewriteRuleWith::)’, which is of non-class type ‘size_t’ {aka ‘long unsigned int’} 74 | transformer::detail::findSelectedCase(Result, Rule).Edits(Result); """

then i modify the code and run success site_t I = transformer::detail::findSelectedCase(Result, Rule); Expected<SmallVector<transformer::Edit, 1>> Edits = Rule.Case[I].Edits(Result);

yyy1mu avatar Apr 29 '24 08:04 yyy1mu