summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/Mangle.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-04-23 03:19:53 +0000
committerDouglas Gregor <dgregor@apple.com>2010-04-23 03:19:53 +0000
commitffe0884bc43c686d2496b75a01f2b2c5a03789c5 (patch)
tree23c53992cdf5824c212b048cdb379c501f513a38 /clang/lib/CodeGen/Mangle.cpp
parent173627188d26a10b8f4c1ac40e0cab6edb3b06b2 (diff)
downloadbcm5719-llvm-ffe0884bc43c686d2496b75a01f2b2c5a03789c5.tar.gz
bcm5719-llvm-ffe0884bc43c686d2496b75a01f2b2c5a03789c5.zip
Emit a lame diagnostic when we can't mangle operator names
llvm-svn: 102168
Diffstat (limited to 'clang/lib/CodeGen/Mangle.cpp')
-rw-r--r--clang/lib/CodeGen/Mangle.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/Mangle.cpp b/clang/lib/CodeGen/Mangle.cpp
index 16823127732..9dc3e2cf87b 100644
--- a/clang/lib/CodeGen/Mangle.cpp
+++ b/clang/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);
}
}
OpenPOWER on IntegriCloud