Skip to content

Commit ff08f72

Browse files
committed
remove unused code
1 parent eca36c4 commit ff08f72

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

lib/Transform/Clang/RemoveFirstPrivate.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -161,21 +161,6 @@ class DeclVisitor : public RecursiveASTVisitor<DeclVisitor> {
161161
return nullptr;
162162
}
163163

164-
/// Return true if there is a side effect inside a specified statement.
165-
const Stmt * findSideEffect(const Stmt &S) {
166-
if (!isa<CallExpr>(S) &&
167-
!(isa<BinaryOperator>(S) && cast<BinaryOperator>(S).isAssignmentOp()) &&
168-
!(isa<UnaryOperator>(S) &&
169-
cast<UnaryOperator>(S).isIncrementDecrementOp())) {
170-
for (auto Child : make_range(S.child_begin(), S.child_end()))
171-
if (Child)
172-
if (auto SideEffect = findSideEffect(*Child))
173-
return SideEffect;
174-
return nullptr;
175-
}
176-
return &S;
177-
}
178-
179164
bool isInPragma = false;
180165
bool waitingForVar = true;
181166
std::map<NamedDecl *, DeclarationInfo> mDeadDecls;

0 commit comments

Comments
 (0)