Okay, that rule about zero-length arrays applies to destroying

them, too.

llvm-svn: 135038
This commit is contained in:
John McCall
2011-07-13 08:09:46 +00:00
parent 72510f22b4
commit 97eab0a271
6 changed files with 46 additions and 60 deletions

View File

@@ -1210,7 +1210,7 @@ public:
bool useEHCleanupForArray);
void emitArrayDestroy(llvm::Value *begin, llvm::Value *end,
QualType type, Destroyer &destroyer,
bool useEHCleanup);
bool checkZeroLength, bool useEHCleanup);
Destroyer &getDestroyer(QualType::DestructionKind destructionKind);