commit | 06de276fff91264437fa75111ed76de43097e089 | [log] [tgz] |
---|---|---|
author | Ted Kremenek <kremenek@apple.com> | Fri Aug 17 16:46:58 2007 +0000 |
committer | Ted Kremenek <kremenek@apple.com> | Fri Aug 17 16:46:58 2007 +0000 |
tree | f64b8c67441c8468771f4519859be86d646e729c | |
parent | 9cdc4d3834f203dcde3ff274b8928e4620a914d5 [diff] |
Added extra semantic checking to do basic detection of "return of stack addresses." ParseReturnStmt now calls CheckReturnStackAddr to determine if the expression in the return statement evaluates to an address of a stack variable. If so, we issue a warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41141 91177308-0d34-0410-b5e6-96231b3b80d8