diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-04-30 23:23:55 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-04-30 23:23:55 +0000 |
commit | e720ce7a3b1c1bfa5f7482183caa6e31fca9a3fb (patch) | |
tree | ba99317c718cc14ca0e53b0071474498d53f75af /lib/Sema/SemaCodeComplete.cpp | |
parent | 8fba894335b979e6d213c685bca959168c1f2182 (diff) |
When going through references to check if the function returns the address
of a local variable, make sure we don't infinitely recurse when the
reference binds to itself.
e.g:
int* func() {
int& i = i; // assign non-exist variable to a reference which has same name.
return &i; // return pointer
}
rdar://11345441
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155856 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaCodeComplete.cpp')
0 files changed, 0 insertions, 0 deletions