It's bad form to create VarDecl's without DeclContexts

llvm-svn: 103484
This commit is contained in:
Douglas Gregor 2010-05-11 18:17:16 +00:00
parent 88070ec400
commit 6a047c979f
1 changed files with 3 additions and 1 deletions

View File

@ -813,7 +813,9 @@ CharUnits BlockFunction::getBlockOffset(const BlockDeclRefExpr *BDRE) {
llvm::APInt(32,
Pad.getQuantity()),
ArrayType::Normal, 0);
ValueDecl *PadDecl = VarDecl::Create(getContext(), 0, SourceLocation(),
ValueDecl *PadDecl = VarDecl::Create(getContext(),
getContext().getTranslationUnitDecl(),
SourceLocation(),
0, QualType(PadTy), 0,
VarDecl::None, VarDecl::None);
Expr *E;