diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-12-14 06:54:03 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-12-14 06:54:03 +0000 |
commit | a9990e80f5d1236277c87aa6fac03e0992c52341 (patch) | |
tree | 69181ca8616399ddebf932fb287f6622c9614e83 /lib/StaticAnalyzer/Core/ExprEngine.cpp | |
parent | 3abc76856fbd33d9af5a5c9bf8dfee596658df1b (diff) |
Have Sema::ActOnStartOfFunctionDef return the declaration that was passed it.
This fixes the missing warning here:
struct S {
template <typename T>
void meth() {
char arr[3];
arr[4] = 0; // warning: array index 4 is past the end of the array
}
};
template <typename T>
void func() {
char arr[3];
arr[4] = 0; // no warning
}
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170180 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/ExprEngine.cpp')
0 files changed, 0 insertions, 0 deletions