Skip to content

Commit 647493b

Browse files
committed
Make VisitSubstNonTypeTemplateParmExpr always return true.
1 parent 416dec5 commit 647493b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/StaticAnalyzer/Checkers/WebKit/PtrTypesSemantics.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,8 @@ class TrivialFunctionAnalysisVisitor
372372

373373
bool
374374
VisitSubstNonTypeTemplateParmExpr(const SubstNonTypeTemplateParmExpr *E) {
375-
// Non-type template paramter is trivial if the replacement is trivial.
376-
return Visit(E->getReplacement());
375+
// Non-type template paramter is compile time constant and trivial.
376+
return true;
377377
}
378378

379379
bool VisitUnaryExprOrTypeTraitExpr(const UnaryExprOrTypeTraitExpr *E) {

0 commit comments

Comments
 (0)