Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

If the declarator doesn't already have a VarDecl associated with it, …

…then it

may not be a usable declarator. Let the higher levels handle this situation.
  • Loading branch information...
commit 15c85630482f84f951df4504466f3b26e74f0e79 1 parent dd16cf4
Bill Wendling authored

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. +2 0  lib/Parse/ParseExpr.cpp
2  lib/Parse/ParseExpr.cpp
@@ -504,6 +504,8 @@ ExprResult Parser::ParseDesignator() {
504 504 // name
505 505 const IdentifierInfo *IDInfo = Tok.getIdentifierInfo();
506 506 VarDecl *VD = IDInfo->getFETokenInfo<VarDecl>();
  507 + if (!VD) return ExprResult();
  508 +
507 509 E = VarExpr::Create(Context, Tok.getLocation(), VD);
508 510 Lex();
509 511

0 comments on commit 15c8563

Please sign in to comment.
Something went wrong with that request. Please try again.