Fix uninitialized use in GetAddrOfGlobalBlock, reenable assert.

- Mike, please verify.

llvm-svn: 66762
This commit is contained in:
Daniel Dunbar 2009-03-12 03:07:24 +00:00
parent f883419b2f
commit a61bb4d198
1 changed files with 2 additions and 2 deletions

View File

@ -557,7 +557,7 @@ BlockModule::GetAddrOfGlobalBlock(const BlockExpr *BE, const char * n) {
CodeGenFunction::BlockInfo Info(0, n);
uint64_t subBlockSize, subBlockAlign;
llvm::SmallVector<const Expr *, 8> subBlockDeclRefDecls;
bool subBlockHasCopyDispose;
bool subBlockHasCopyDispose = false;
llvm::Function *Fn
= CodeGenFunction(CGM).GenerateBlockFunction(BE, Info, subBlockSize,
subBlockAlign,
@ -567,7 +567,7 @@ BlockModule::GetAddrOfGlobalBlock(const BlockExpr *BE, const char * n) {
&& "no imports allowed for global block");
// FIXME: This causes a failure on clang-i686-linux, not sure why,
// disable for now.
// assert(!subBlockHasCopyDispose && "no imports allowed for global block");
assert(!subBlockHasCopyDispose && "no imports allowed for global block");
// isa
LiteralFields[0] = getNSConcreteGlobalBlock();