Protect from skipping function template patterns.

This commit is contained in:
Axel Naumann 2014-09-26 15:59:19 +02:00 committed by sftnight
parent 93d1140a38
commit 7f1e4f4383

View File

@ -903,6 +903,10 @@ namespace cling {
else {
StreamRAII SubStream(*this);
Visit(D->getTemplatedDecl());
if (m_SkipFlag) {
skipDecl(D->getTemplatedDecl(), "Template pattern failed");
return;
}
Stream << SubStream.take(true);
}
Stream.flush();