We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 416dec5 commit 647493bCopy full SHA for 647493b
clang/lib/StaticAnalyzer/Checkers/WebKit/PtrTypesSemantics.cpp
@@ -372,8 +372,8 @@ class TrivialFunctionAnalysisVisitor
372
373
bool
374
VisitSubstNonTypeTemplateParmExpr(const SubstNonTypeTemplateParmExpr *E) {
375
- // Non-type template paramter is trivial if the replacement is trivial.
376
- return Visit(E->getReplacement());
+ // Non-type template paramter is compile time constant and trivial.
+ return true;
377
}
378
379
bool VisitUnaryExprOrTypeTraitExpr(const UnaryExprOrTypeTraitExpr *E) {
0 commit comments