[LLVMbugs] [Bug 19760] New: Assertion `(!isLocalLinkage(LT) || hasDefaultVisibility()) && "local linkage requires default visibility"' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri May 16 02:07:52 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=19760

            Bug ID: 19760
           Summary: Assertion `(!isLocalLinkage(LT) ||
                    hasDefaultVisibility()) && "local linkage requires
                    default visibility"' failed.
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: kcc at google.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

This is r208951 on x86_64 Linux. 

% clang -c z.c
clang-3.5: /home/kcc/llvm/include/llvm/IR/GlobalValue.h:226: void
llvm::GlobalValue::setLinkage(llvm::GlobalValue::LinkageTypes): Assertion
`(!isLocalLinkage(LT) || hasDefaultVisibility()) && "local linkage requires
default visibility"' failed.
8  clang-3.5       0x00000000017bb067
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl,
llvm::GlobalValue*) + 855
9  clang-3.5       0x00000000017bc270
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl,
llvm::GlobalValue*) + 432
10 clang-3.5       0x00000000017bdea7
clang::CodeGen::CodeGenModule::EmitDeferred() + 183
11 clang-3.5       0x00000000017bdf10 clang::CodeGen::CodeGenModule::Release()
+ 16
12 clang-3.5       0x000000000174c4f1
13 clang-3.5       0x0000000001bf44eb clang::ParseAST(clang::Sema&, bool, bool)
+ 507

reduced from a source file from glibc-2.19

static void
nop () {
}
void __warn_memset_zero_len (void) __attribute__ ( (alias ("nop") ) )
__attribute__ ( (visibility ("hidden") ) );

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140516/b7e5ea1d/attachment.html>


More information about the llvm-bugs mailing list