From 23d375117025c30902a5813dc0bde7d2341b037a Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 8 Nov 2013 23:46:20 +0000 Subject: Use rauw for all discardable aliases, not just linkonce_odr. llvm-svn: 194296 --- clang/lib/CodeGen/CGCXX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CGCXX.cpp') diff --git a/clang/lib/CodeGen/CGCXX.cpp b/clang/lib/CodeGen/CGCXX.cpp index 8c7a089460f..f9b07d2386b 100644 --- a/clang/lib/CodeGen/CGCXX.cpp +++ b/clang/lib/CodeGen/CGCXX.cpp @@ -141,7 +141,7 @@ bool CodeGenModule::TryEmitDefinitionAsAlias(GlobalDecl AliasDecl, // Instead of creating as alias to a linkonce_odr, replace all of the uses // of the aliassee. - if (Linkage == llvm::GlobalValue::LinkOnceODRLinkage) { + if (llvm::GlobalValue::isDiscardableIfUnused(Linkage)) { Replacements[MangledName] = Aliasee; return false; } -- cgit v1.2.3