forked from OSchip/llvm-project
It's bad form to create VarDecl's without DeclContexts
llvm-svn: 103484
This commit is contained in:
parent
88070ec400
commit
6a047c979f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue