diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2010-08-13 01:36:11 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2010-08-13 01:36:11 +0000 |
commit | de7e66256b1bdfcf6526994825a8c8fced52a31c (patch) | |
tree | 4bad43ec14bf772db58bd501a5ca473a2a8c2f51 /lib/Checker/IdempotentOperationChecker.cpp | |
parent | 1e3a97c98a9ad099410fa5172ce8783baf0da0fd (diff) |
Zap unused UnaryOperator::OffsetOf.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110996 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker/IdempotentOperationChecker.cpp')
-rw-r--r-- | lib/Checker/IdempotentOperationChecker.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Checker/IdempotentOperationChecker.cpp b/lib/Checker/IdempotentOperationChecker.cpp index 9866c6096e..74f4a62ccc 100644 --- a/lib/Checker/IdempotentOperationChecker.cpp +++ b/lib/Checker/IdempotentOperationChecker.cpp @@ -540,10 +540,9 @@ bool IdempotentOperationChecker::CanVary(const Expr *Ex, ASTContext &Ctx) { } case Stmt::UnaryOperatorClass: { const UnaryOperator *U = cast<const UnaryOperator>(Ex); - // Handle two trivial cases first + // Handle trivial case first switch (U->getOpcode()) { case UnaryOperator::Extension: - case UnaryOperator::OffsetOf: return false; default: return CanVary(U->getSubExpr(), Ctx); |