[clang] [analyzer] Fix StackAddrEscapeChecker crash on temporary object fields (PR #66493)

via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 15 04:56:47 PDT 2023


================
@@ -398,7 +400,7 @@ void StackAddrEscapeChecker::checkEndFunction(const ReturnStmt *RS,
     }(Referrer->getMemorySpace());
 
     // This cast supposed to succeed.
----------------
DonatNagyE wrote:

Perhaps explain why will the cast succeed (or, alternatively, just remove this meaningless comment).

https://github.com/llvm/llvm-project/pull/66493


More information about the cfe-commits mailing list