CompoundStmt use?

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?

Sergey

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