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. llvm-svn: 100924
This commit is contained in:
		
							parent
							
								
									23eebd9c1e
								
							
						
					
					
						commit
						e2f3524f83
					
				| 
						 | 
					@ -1292,8 +1292,10 @@ void CXXNameMangler::mangleExpression(const Expr *E) {
 | 
				
			||||||
    Diagnostic &Diags = Context.getDiags();
 | 
					    Diagnostic &Diags = Context.getDiags();
 | 
				
			||||||
    unsigned DiagID = Diags.getCustomDiagID(Diagnostic::Error,
 | 
					    unsigned DiagID = Diags.getCustomDiagID(Diagnostic::Error,
 | 
				
			||||||
                                     "cannot yet mangle expression type %0");
 | 
					                                     "cannot yet mangle expression type %0");
 | 
				
			||||||
    Diags.Report(FullSourceLoc(), DiagID)
 | 
					    Diags.Report(FullSourceLoc(E->getExprLoc(),
 | 
				
			||||||
      << E->getStmtClassName();
 | 
					                               getASTContext().getSourceManager()),
 | 
				
			||||||
 | 
					                 DiagID)
 | 
				
			||||||
 | 
					      << E->getStmtClassName() << E->getSourceRange();
 | 
				
			||||||
    break;
 | 
					    break;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue