Don't error on C++ linkage; if we don't support that, there are

serious issues :)

llvm-svn: 77800
This commit is contained in:
Eli Friedman 2009-08-01 20:48:04 +00:00
parent 6778f1f368
commit e480ce3d29
1 changed files with 2 additions and 1 deletions

View File

@ -1493,7 +1493,8 @@ void CodeGenModule::EmitNamespace(const NamespaceDecl *ND) {
// EmitLinkageSpec - Emit all declarations in a linkage spec.
void CodeGenModule::EmitLinkageSpec(const LinkageSpecDecl *LSD) {
if (LSD->getLanguage() != LinkageSpecDecl::lang_c) {
if (LSD->getLanguage() != LinkageSpecDecl::lang_c &&
LSD->getLanguage() != LinkageSpecDecl::lang_cxx) {
ErrorUnsupported(LSD, "linkage spec");
return;
}