Skip to content

Commit 20d252c

Browse files
committed
Remove dead code.
llvm-svn: 291610
1 parent df27aa8 commit 20d252c

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

clang/lib/Parse/Parser.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1737,17 +1737,12 @@ bool Parser::TryAnnotateTypeOrScopeToken() {
17371737
bool Parser::TryAnnotateTypeOrScopeTokenAfterScopeSpec(CXXScopeSpec &SS,
17381738
bool IsNewScope) {
17391739
if (Tok.is(tok::identifier)) {
1740-
IdentifierInfo *CorrectedII = nullptr;
17411740
// Determine whether the identifier is a type name.
17421741
if (ParsedType Ty = Actions.getTypeName(
17431742
*Tok.getIdentifierInfo(), Tok.getLocation(), getCurScope(), &SS,
17441743
false, NextToken().is(tok::period), nullptr,
17451744
/*IsCtorOrDtorName=*/false,
17461745
/*NonTrivialTypeSourceInfo*/ true)) {
1747-
// A FixIt was applied as a result of typo correction
1748-
if (CorrectedII)
1749-
Tok.setIdentifierInfo(CorrectedII);
1750-
17511746
SourceLocation BeginLoc = Tok.getLocation();
17521747
if (SS.isNotEmpty()) // it was a C++ qualified type name.
17531748
BeginLoc = SS.getBeginLoc();

0 commit comments

Comments
 (0)