aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/TreeTransform.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-04-22 17:01:48 +0000
committerDouglas Gregor <dgregor@apple.com>2010-04-22 17:01:48 +0000
commitf49bb082ebf6413b2d3cb956e9c78dbb8a978c58 (patch)
treea26f67811781521de1cf110a1f3cd18c2ea691d8 /lib/Sema/TreeTransform.h
parent39968adc66ab02275d2f561e372a20ae454bd4e7 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102081 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/TreeTransform.h')
-rw-r--r--lib/Sema/TreeTransform.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/Sema/TreeTransform.h b/lib/Sema/TreeTransform.h
index 6a7f6cbdf4..fbb41d83d2 100644
--- a/lib/Sema/TreeTransform.h
+++ b/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));
}