[cfe-commits] r100924 - /cfe/trunk/lib/CodeGen/Mangle.cpp
John McCall
rjmccall at apple.com
Sat Apr 10 02:39:26 PDT 2010
Author: rjmccall
Date: Sat Apr 10 04:39:25 2010
New Revision: 100924
URL: http://llvm.org/viewvc/llvm-project?rev=100924&view=rev
Log:
Doug pointed out that we have a perfectly reasonable expression here to
serve as a source of source locations for the can't-yet-mangle diagnostic.
Modified:
cfe/trunk/lib/CodeGen/Mangle.cpp
Modified: cfe/trunk/lib/CodeGen/Mangle.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/Mangle.cpp?rev=100924&r1=100923&r2=100924&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/Mangle.cpp (original)
+++ cfe/trunk/lib/CodeGen/Mangle.cpp Sat Apr 10 04:39:25 2010
@@ -1292,8 +1292,10 @@
Diagnostic &Diags = Context.getDiags();
unsigned DiagID = Diags.getCustomDiagID(Diagnostic::Error,
"cannot yet mangle expression type %0");
- Diags.Report(FullSourceLoc(), DiagID)
- << E->getStmtClassName();
+ Diags.Report(FullSourceLoc(E->getExprLoc(),
+ getASTContext().getSourceManager()),
+ DiagID)
+ << E->getStmtClassName() << E->getSourceRange();
break;
}
More information about the cfe-commits
mailing list