diff options
author | Chris Lattner <sabre@nondot.org> | 2010-09-03 04:34:38 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-09-03 04:34:38 +0000 |
commit | fae962200efef618d1c24c14b9c3fed25876f059 (patch) | |
tree | 54655eb9c4037456568a604b85c69672860969f1 /lib/Checker/IdempotentOperationChecker.cpp | |
parent | 8c465e6494d16a19127873dc9bdc55177ac6b6fd (diff) |
"I see dead code". IdempotentOperationChecker::isTruncationExtensionAssignment
should probably be removed if it has no purpose, but I just #if'd it out
in case it's usefulIdempotentOperationChecker::isTruncationExtensionAssignment
should probably be removed if it has no purpose, but I just #if'd it out
in case it's useful
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112949 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker/IdempotentOperationChecker.cpp')
-rw-r--r-- | lib/Checker/IdempotentOperationChecker.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Checker/IdempotentOperationChecker.cpp b/lib/Checker/IdempotentOperationChecker.cpp index f6970de783..6411c790ef 100644 --- a/lib/Checker/IdempotentOperationChecker.cpp +++ b/lib/Checker/IdempotentOperationChecker.cpp @@ -78,8 +78,8 @@ class IdempotentOperationChecker // False positive reduction methods static bool isSelfAssign(const Expr *LHS, const Expr *RHS); static bool isUnused(const Expr *E, AnalysisContext *AC); - static bool isTruncationExtensionAssignment(const Expr *LHS, - const Expr *RHS); + //static bool isTruncationExtensionAssignment(const Expr *LHS, + // const Expr *RHS); static bool PathWasCompletelyAnalyzed(const CFG *C, const CFGBlock *CB, const GRCoreEngine &CE); @@ -500,6 +500,7 @@ bool IdempotentOperationChecker::isUnused(const Expr *E, return true; } +#if 0 // Check for self casts truncating/extending a variable bool IdempotentOperationChecker::isTruncationExtensionAssignment( const Expr *LHS, @@ -522,6 +523,7 @@ bool IdempotentOperationChecker::isTruncationExtensionAssignment( return dyn_cast<DeclRefExpr>(RHS->IgnoreParens()) == NULL; } +#endif // Returns false if a path to this block was not completely analyzed, or true // otherwise. |