diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-04-23 03:19:53 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-04-23 03:19:53 +0000 |
commit | f55e3fd5e316db2e9993b26255f727d00486b904 (patch) | |
tree | bedd33fb8e76f78cdb695bf455e5a97818cf24cb /lib/CodeGen/Mangle.cpp | |
parent | 20f0cc7a0f0c4a941fa0c57b9516c2d455b64a64 (diff) |
Emit a lame diagnostic when we can't mangle operator names
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102168 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/Mangle.cpp')
-rw-r--r-- | lib/CodeGen/Mangle.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/CodeGen/Mangle.cpp b/lib/CodeGen/Mangle.cpp index 1682312773..9dc3e2cf87 100644 --- a/lib/CodeGen/Mangle.cpp +++ b/lib/CodeGen/Mangle.cpp @@ -767,7 +767,11 @@ void CXXNameMangler::mangleTemplatePrefix(TemplateName Template) { if (Dependent->isIdentifier()) mangleSourceName(Dependent->getIdentifier()); else { - // FIXME: We can't possibly know the arity for mangling operators! + // FIXME: We can't possibly know the arity of the operator here! + Diagnostic &Diags = Context.getDiags(); + unsigned DiagID = Diags.getCustomDiagID(Diagnostic::Error, + "cannot mangle dependent operator name"); + Diags.Report(FullSourceLoc(), DiagID); } } |