diff options
Diffstat (limited to 'lib/Sema/SemaOverload.cpp')
-rw-r--r-- | lib/Sema/SemaOverload.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp index 20fb7a768b..9bba5f6c78 100644 --- a/lib/Sema/SemaOverload.cpp +++ b/lib/Sema/SemaOverload.cpp @@ -974,14 +974,6 @@ static bool canBeOverloaded(const FunctionDecl &D) { if (D.isMain()) return false; - // FIXME: Users assume they know the mangling of static functions - // declared in extern "C" contexts. For now just disallow overloading these - // functions so that we can avoid mangling them. - const DeclContext *DC = D.getDeclContext(); - if (!DC->isRecord() && - D.getFirstDeclaration()->getDeclContext()->isExternCContext()) - return false; - return true; } |