diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Sema/SemaExpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index 9a0d0aca0e..c6115a8c38 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -436,7 +436,7 @@ Sema::ExprResult Sema::ActOnIdentifierExpr(Scope *S, SourceLocation Loc, // things like "integer constant expression" tests. // if (!CurBlock || DeclDefinedWithinScope(VD, CurBlock->TheScope, S) || - isa<EnumConstantDecl>(VD)) + isa<EnumConstantDecl>(VD) || isa<ParmVarDecl>(VD)) return new DeclRefExpr(VD, VD->getType(), Loc); // If we are in a block and the variable is outside the current block, |