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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to