[cfe-commits] r81943 - /cfe/trunk/lib/AST/DeclCXX.cpp
Fariborz Jahanian
fjahanian at apple.com
Tue Sep 15 16:02:16 PDT 2009
Author: fjahanian
Date: Tue Sep 15 18:02:16 2009
New Revision: 81943
URL: http://llvm.org/viewvc/llvm-project?rev=81943&view=rev
Log:
In building list of visible conversion functions, use
result type of template convesion functions.
Modified:
cfe/trunk/lib/AST/DeclCXX.cpp
Modified: cfe/trunk/lib/AST/DeclCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/DeclCXX.cpp?rev=81943&r1=81942&r2=81943&view=diff
==============================================================================
--- cfe/trunk/lib/AST/DeclCXX.cpp (original)
+++ cfe/trunk/lib/AST/DeclCXX.cpp Tue Sep 15 18:02:16 2009
@@ -310,7 +310,7 @@
dyn_cast<FunctionTemplateDecl>(TopConv))
TConvType =
getASTContext().getCanonicalType(
- TConversionTemplate->getTemplatedDecl()->getType());
+ TConversionTemplate->getTemplatedDecl()->getResultType());
else
TConvType =
getASTContext().getCanonicalType(
@@ -331,7 +331,7 @@
dyn_cast<FunctionTemplateDecl>(Conv))
ConvType =
getASTContext().getCanonicalType(
- ConversionTemplate->getTemplatedDecl()->getType());
+ ConversionTemplate->getTemplatedDecl()->getResultType());
else
ConvType =
getASTContext().getCanonicalType(
More information about the cfe-commits
mailing list