The return value is never used.

llvm-svn: 115272
This commit is contained in:
Zhongxing Xu 2010-10-01 03:22:39 +00:00
parent 307701e1b4
commit 6d372f7c0f
1 changed files with 8 additions and 7 deletions

View File

@ -304,8 +304,9 @@ private:
CFGBlock *addStmt(Stmt *S) {
return Visit(S, AddStmtChoice::AlwaysAdd);
}
CFGBlock *addAutomaticObjDtors(LocalScope::const_iterator B,
LocalScope::const_iterator E, Stmt* S);
void addAutomaticObjDtors(LocalScope::const_iterator B,
LocalScope::const_iterator E, Stmt* S);
// Local scopes creation.
LocalScope* createOrReuseLocalScope(LocalScope* Scope);
@ -470,16 +471,16 @@ CFGBlock* CFGBuilder::createBlock(bool add_successor) {
/// addAutomaticObjDtors - Add to current block automatic objects destructors
/// for objects in range of local scope positions. Use S as trigger statement
/// for destructors.
CFGBlock* CFGBuilder::addAutomaticObjDtors(LocalScope::const_iterator B,
LocalScope::const_iterator E, Stmt* S) {
void CFGBuilder::addAutomaticObjDtors(LocalScope::const_iterator B,
LocalScope::const_iterator E, Stmt* S) {
if (!BuildOpts.AddImplicitDtors)
return Block;
return;
if (B == E)
return Block;
return;
autoCreateBlock();
appendAutomaticObjDtors(Block, B, E, S);
return Block;
}
/// createOrReuseLocalScope - If Scope is NULL create new LocalScope. Either