summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2013-02-25 22:10:34 +0000
committerAnna Zaks <ganna@apple.com>2013-02-25 22:10:34 +0000
commitba342723214c76389ad7313728a1a330b9fc927e (patch)
tree266ecf3220535771273d3d070fdfce1ab59fa0d9 /clang/lib/CodeGen/CodeGenModule.cpp
parent0adc042392028828f6106cf2c1494db8ecfb7ced (diff)
downloadbcm5719-llvm-ba342723214c76389ad7313728a1a330b9fc927e.tar.gz
bcm5719-llvm-ba342723214c76389ad7313728a1a330b9fc927e.zip
[analyzer] Restrict ObjC type inference to methods that have related result type.
This addresses a case when we inline a wrong method due to incorrect dynamic type inference. Specifically, when user code contains a method from init family, which creates an instance of another class. Use hasRelatedResultType() to find out if our inference rules should be triggered. llvm-svn: 176054
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud