[all-commits] [llvm/llvm-project] cde1df: Correct -Winfinite-recursion warning on potentiall...
appmonster007 via All-commits
all-commits at lists.llvm.org
Thu Jun 30 06:09:50 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: cde1df4ca4f233f1069041ed1646779e9ff1ad7d
https://github.com/llvm/llvm-project/commit/cde1df4ca4f233f1069041ed1646779e9ff1ad7d
Author: Prathit Aswar <snaswar0201 at gmail.com>
Date: 2022-06-30 (Thu, 30 Jun 2022)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Analysis/CFG.cpp
M clang/test/SemaCXX/warn-infinite-recursion.cpp
Log Message:
-----------
Correct -Winfinite-recursion warning on potentially-unevaluated operand
Fixing issue "incorrect -Winfinite-recursion warning on potentially-
unevaluated operand".
We add a dedicated visit function (VisitCXXTypeidExpr) for typeid,
instead of using the default (VisitStmt). In this new function we skip
over building the CFG for unevaluated operands of typeid.
Fixes #21668
Differential Revision: https://reviews.llvm.org/D128747
More information about the All-commits
mailing list