r198419 - Removing an unneeded typecast. getScopeRep() already returns a NestedNameSpecifier.
Aaron Ballman
aaron at aaronballman.com
Fri Jan 3 06:48:20 PST 2014
Author: aaronballman
Date: Fri Jan 3 08:48:20 2014
New Revision: 198419
URL: http://llvm.org/viewvc/llvm-project?rev=198419&view=rev
Log:
Removing an unneeded typecast. getScopeRep() already returns a NestedNameSpecifier.
Modified:
cfe/trunk/lib/Sema/SemaDecl.cpp
Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=198419&r1=198418&r2=198419&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Fri Jan 3 08:48:20 2014
@@ -471,7 +471,7 @@ bool Sema::DiagnoseUnknownTypeName(Ident
DiagID = diag::warn_typename_missing;
Diag(SS->getRange().getBegin(), DiagID)
- << (NestedNameSpecifier *)SS->getScopeRep() << II->getName()
+ << SS->getScopeRep() << II->getName()
<< SourceRange(SS->getRange().getBegin(), IILoc)
<< FixItHint::CreateInsertion(SS->getRange().getBegin(), "typename ");
SuggestedType = ActOnTypenameType(S, SourceLocation(),
More information about the cfe-commits
mailing list