summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaCodeComplete.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-04-30 23:23:55 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-04-30 23:23:55 +0000
commitb4015e18776ea17a4e461a613042c3ac36ac728d (patch)
tree7722ec7f7eb2d21fbfb29d286c1c296369b8a178 /clang/lib/Sema/SemaCodeComplete.cpp
parentfaded5bb0fb5eecd1195c3596aa52cba0eeb68e4 (diff)
downloadbcm5719-llvm-b4015e18776ea17a4e461a613042c3ac36ac728d.tar.gz
bcm5719-llvm-b4015e18776ea17a4e461a613042c3ac36ac728d.zip
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 llvm-svn: 155856
Diffstat (limited to 'clang/lib/Sema/SemaCodeComplete.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud