Fix uninitialized use in GetAddrOfGlobalBlock, reenable assert.
- Mike, please verify. llvm-svn: 66762
This commit is contained in:
parent
f883419b2f
commit
a61bb4d198
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue