[PATCH] Use the correct from type in a SCS
Ehsan Akhgari
ehsan.akhgari at gmail.com
Tue Jul 22 13:29:18 PDT 2014
Closed by commit rL213680 (authored by @ehsan).
REPOSITORY
rL LLVM
http://reviews.llvm.org/D4402
Files:
cfe/trunk/lib/Sema/SemaOverload.cpp
Index: cfe/trunk/lib/Sema/SemaOverload.cpp
===================================================================
--- cfe/trunk/lib/Sema/SemaOverload.cpp
+++ cfe/trunk/lib/Sema/SemaOverload.cpp
@@ -1451,6 +1451,7 @@
// We were able to resolve the address of the overloaded function,
// so we can convert to the type of that function.
FromType = Fn->getType();
+ SCS.setFromType(FromType);
// we can sometimes resolve &foo<int> regardless of ToType, so check
// if the type matches (identity) or we are converting to bool
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4402.11777.patch
Type: text/x-patch
Size: 560 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140722/650b3a32/attachment.bin>
More information about the cfe-commits
mailing list