diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-07-09 17:16:51 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-07-09 17:16:51 +0000 |
commit | 72e771f12a97700e578b28f953622a6b6916bef1 (patch) | |
tree | 42e12114d101bbbeb33c521d1c4e2f214a2e8a13 /lib/Sema/SemaOverload.cpp | |
parent | c7068caed7a1d4e0e42b0e64db24bf23f12f712b (diff) |
Add test for C++ [over.over.]p1, the contexts in which one can take the address of an overloaded function.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75146 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaOverload.cpp')
-rw-r--r-- | lib/Sema/SemaOverload.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp index 1efa175c73..d10d32c62a 100644 --- a/lib/Sema/SemaOverload.cpp +++ b/lib/Sema/SemaOverload.cpp @@ -3702,7 +3702,7 @@ Sema::ResolveAddressOfOverloadedFunction(Expr *From, QualType ToType, } // We only look at pointers or references to functions. - FunctionType = Context.getCanonicalType(FunctionType.getUnqualifiedType()); + FunctionType = Context.getCanonicalType(FunctionType).getUnqualifiedType(); if (!FunctionType->isFunctionType()) return 0; |