Tweak the assert in ModuleBuilder from r224533 (PR21989)
authorHans Wennborg <hans@hanshq.net>
Fri, 19 Dec 2014 23:35:11 +0000 (23:35 +0000)
committerHans Wennborg <hans@hanshq.net>
Fri, 19 Dec 2014 23:35:11 +0000 (23:35 +0000)
commit0c0a8c868ca59d4f8a13edf29beea593fca2ff4f
tree5d1b6a8db9230aa70ca6b65bb2ad8d855d447679
parent013ddaf18c2d89d5a0aa39bafde0a23912e01a36
Tweak the assert in ModuleBuilder from r224533 (PR21989)

Turns out there will be left-over deferred inline methods if there have
been errors, because in that case HandleTopLevelDecl bails out early.

llvm-svn: 224649
clang/lib/CodeGen/ModuleBuilder.cpp
clang/test/CodeGenCXX/pr21989.cc [new file with mode: 0644]