forked from OSchip/llvm-project
Don't error on C++ linkage; if we don't support that, there are
serious issues :) llvm-svn: 77800
This commit is contained in:
parent
6778f1f368
commit
e480ce3d29
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue