[cfe-dev] CompoundStmt use?

Douglas Gregor dgregor at apple.com
Mon Jul 26 06:58:38 PDT 2010

On Jul 26, 2010, at 6:07 AM, Сергей Филиппов wrote:

> Hi,
> I'm porting some program from llvm/clang 2.4 to llvm/clang 2.7. There is a problem with CompoundStmt, in old version of clang it had method push_back, because body was declared as Smallvector, but now CompoundStmt doesn't have this method. Isthere any way to add Stmt to CompoundStmt?

No, there is no way to add a single statement to a CompoundStmt. You'll have to create a new vector of statements and call setStmts.

  - Doug

More information about the cfe-dev mailing list