Tentative declarations are supposed to have common linkage, not weak.

This change makes clang generate the same thing as llvm-gcc.

llvm-svn: 51674
This commit is contained in:
Eli Friedman
2008-05-29 11:03:17 +00:00
parent 5a6d0ede91
commit d72a9624a1
2 changed files with 2 additions and 2 deletions

View File

@@ -500,7 +500,7 @@ void CodeGenModule::EmitGlobalVarInit(const VarDecl *D) {
assert(0 && "Can't have auto or register globals");
case VarDecl::None:
if (!D->getInit())
GV->setLinkage(llvm::GlobalVariable::WeakLinkage);
GV->setLinkage(llvm::GlobalVariable::CommonLinkage);
break;
case VarDecl::Extern:
case VarDecl::PrivateExtern: