[cfe-commits] r103484 - /cfe/trunk/lib/CodeGen/CGBlocks.cpp
Douglas Gregor
dgregor at apple.com
Tue May 11 11:17:16 PDT 2010
Author: dgregor
Date: Tue May 11 13:17:16 2010
New Revision: 103484
URL: http://llvm.org/viewvc/llvm-project?rev=103484&view=rev
Log:
It's bad form to create VarDecl's without DeclContexts
Modified:
cfe/trunk/lib/CodeGen/CGBlocks.cpp
Modified: cfe/trunk/lib/CodeGen/CGBlocks.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGBlocks.cpp?rev=103484&r1=103483&r2=103484&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGBlocks.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGBlocks.cpp Tue May 11 13:17:16 2010
@@ -813,7 +813,9 @@
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;
More information about the cfe-commits
mailing list