If new function is missing empty exception specification "throw()" and "throw()" came from system header, don't emit errors. It is already implemented in Clang, but taking into account only last redeclaration of a function. Look for declaration in system header up to the first declaration in redeclaration chain, as GCC seems to do.
This patch enables compilation of Facebook/ds2 application.
Please find a way to sink the call to getFirstDecl() to the point where we need it.