diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-04-22 17:01:48 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-04-22 17:01:48 +0000 |
| commit | b5186b1d4454adc908e9a9a3ddc7b368c9049885 (patch) | |
| tree | 5b1f5de5638be8debc6d59e5d89716e46865635d /clang/lib/Sema/TreeTransform.h | |
| parent | 049211a670dffac0d5a87ef36fdc2e0ae73fb804 (diff) | |
| download | bcm5719-llvm-b5186b1d4454adc908e9a9a3ddc7b368c9049885.tar.gz bcm5719-llvm-b5186b1d4454adc908e9a9a3ddc7b368c9049885.zip | |
When a dependent Objective-C++ message send was able to resolve the
method being called at template definition time, retain that method
and pass it through to type-checking. We will not perform any lookup
for the method during template instantiation.
llvm-svn: 102081
Diffstat (limited to 'clang/lib/Sema/TreeTransform.h')
| -rw-r--r-- | clang/lib/Sema/TreeTransform.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/clang/lib/Sema/TreeTransform.h b/clang/lib/Sema/TreeTransform.h index 6a7f6cbdf4c..fbb41d83d2d 100644 --- a/clang/lib/Sema/TreeTransform.h +++ b/clang/lib/Sema/TreeTransform.h @@ -1698,13 +1698,10 @@ public: SourceLocation LBracLoc, MultiExprArg Args, SourceLocation RBracLoc) { - // FIXME: Drops Method return SemaRef.BuildClassMessage(ReceiverTypeInfo, ReceiverTypeInfo->getType(), /*SuperLoc=*/SourceLocation(), - Sel, - LBracLoc, - RBracLoc, + Sel, Method, LBracLoc, RBracLoc, move(Args)); } @@ -1715,14 +1712,11 @@ public: SourceLocation LBracLoc, MultiExprArg Args, SourceLocation RBracLoc) { - // FIXME: Drops Method QualType ReceiverType = static_cast<Expr *>(Receiver.get())->getType(); return SemaRef.BuildInstanceMessage(move(Receiver), ReceiverType, /*SuperLoc=*/SourceLocation(), - Sel, - LBracLoc, - RBracLoc, + Sel, Method, LBracLoc, RBracLoc, move(Args)); } |

