https://bugs.llvm.org/show_bug.cgi?id=36268

            Bug ID: 36268
           Summary: "GlobalValue with non default visibility must be
                    dso_local!"
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: h...@chromium.org
                CC: llvm-bugs@lists.llvm.org, rafael.espind...@gmail.com

After r322806, Clang fails to build Chromium for iOS.

creduced test case:

__attribute__((availability(ios, introduced = 11.0))) @interface a @end
    @implementation a @end


$ clang -cc1 -triple thumbv7-apple-ios10.0.0 -emit-obj -fvisibility hidden
-fvisibility-inlines-hidden -x objective-c++ a.ii
GlobalValue with non default visibility must be dso_local!
%struct._class_t* @"OBJC_CLASS_$_a"
GlobalValue with non default visibility must be dso_local!
%struct._class_t* @"OBJC_METACLASS_$_a"
fatal error: error in backend: Broken module found, compilation aborted!

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to