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 | 26444c5243496953fa572bc0169f2ab006b1122a (patch) | |
tree | 21636cf906e9af81fa6b59b11404d7121360bc54 /llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | |
parent | 6fada2ddbdfecde74d0515723a1a0caacbdd3445 (diff) | |
download | bcm5719-llvm-26444c5243496953fa572bc0169f2ab006b1122a.tar.gz bcm5719-llvm-26444c5243496953fa572bc0169f2ab006b1122a.zip |
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
}
llvm-svn: 170180
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
0 files changed, 0 insertions, 0 deletions