diff options
author | Jordan Rose <jordan_rose@apple.com> | 2012-07-09 16:54:49 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2012-07-09 16:54:49 +0000 |
commit | e04395e2f4a7a2a1e03b59cc687ac56f0854381b (patch) | |
tree | bc60d35a77c1508c5d46cd1d406237a1483c48a4 /clang/lib/Parse/ParseDecl.cpp | |
parent | f9198030015f05e2463f15064d6ff3cc627c10f5 (diff) | |
download | bcm5719-llvm-e04395e2f4a7a2a1e03b59cc687ac56f0854381b.tar.gz bcm5719-llvm-e04395e2f4a7a2a1e03b59cc687ac56f0854381b.zip |
[analyzer] When inlining, make sure we use the definition decl.
This was a regression introduced during the CallEvent changes; a call to
FunctionDecl::hasBody was also being used to replace the decl found by
lookup with the actual definition. To keep from making this mistake again
(particularly if/when we start inlining Objective-C methods), this commit
adds a "getDefinition()" method to CallEvent, which should do the right
thing under any circumstances.
llvm-svn: 159940
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
0 files changed, 0 insertions, 0 deletions