[cfe-dev] CFGElement to CFGStmt

anikau31 amkaushi at uwaterloo.ca
Sun Mar 24 21:29:40 PDT 2013


Hi,

I am trying to cast CFGElement* to CFGStmt*. I remember using the following
code a while back:
CFGStmt *cs = bit->getAs<CFGStmt>() where bit is a const_iterator (I am
iterating through the elements of a CFG block). I get the following error
"error: cannot convert ‘llvm::Optional<clang::CFGStmt>’ to ‘const
clang::CFGStmt*’ in initialization". I remember the above code used to work
fine a while back. Is there a work around and why the change?
Thanks!



--
View this message in context: http://clang-developers.42468.n3.nabble.com/CFGElement-to-CFGStmt-tp4031123.html
Sent from the Clang Developers mailing list archive at Nabble.com.




More information about the cfe-dev mailing list