[cfe-commits] r115272 - /cfe/trunk/lib/Analysis/CFG.cpp
Zhongxing Xu
xuzhongxing at gmail.com
Thu Sep 30 20:22:39 PDT 2010
Author: zhongxingxu
Date: Thu Sep 30 22:22:39 2010
New Revision: 115272
URL: http://llvm.org/viewvc/llvm-project?rev=115272&view=rev
Log:
The return value is never used.
Modified:
cfe/trunk/lib/Analysis/CFG.cpp
Modified: cfe/trunk/lib/Analysis/CFG.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CFG.cpp?rev=115272&r1=115271&r2=115272&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/CFG.cpp (original)
+++ cfe/trunk/lib/Analysis/CFG.cpp Thu Sep 30 22:22:39 2010
@@ -304,8 +304,9 @@
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 @@
/// 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
More information about the cfe-commits
mailing list