Need to also suppress assert for multiple kCCIHandleCXXImplicitFunctionInstantiation.

This commit is contained in:
Axel Naumann 2016-06-13 13:50:48 +02:00 committed by sftnight
parent 97b507f1fe
commit c6b91546cb

View File

@ -146,7 +146,8 @@ namespace cling {
// declaration, because each time Sema believes a vtable is used it emits
// that callback.
// For reference (clang::CodeGen::CodeGenModule::EmitVTable).
if (oldDCI.m_Call != kCCIHandleVTable)
if (oldDCI.m_Call != kCCIHandleVTable
&& oldDCI.m_Call != kCCIHandleCXXImplicitFunctionInstantiation)
assert(oldDCI != DCI && "Duplicates?!");
}
// We want to assert there is only one wrapper per transaction.