[LLVMbugs] [Bug 13852] Checking for symbols in weakly linked frameworks shouldn't get optimized out

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Sep 14 19:42:42 PDT 2012


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

Eli Friedman <sharparrow1 at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |sharparrow1 at yahoo.com
         Resolution|                            |INVALID

--- Comment #4 from Eli Friedman <sharparrow1 at yahoo.com> 2012-09-14 21:42:42 CDT ---
Your "weak_import " shouldn't be necessary.  The symbol in question is supposed
to be marked with an availability attribute so we automatically make it weak. 
That said, the marking in question is missing here; please file a bug using the
Apple bug reporter (http://bugreporter.apple.com/) so it gets to the right team
at Apple.

For the Social framework in particular, a workaround would be to check "if
([SLRequest class])" instead of checking for SLServiceTypeFacebook.

(If you're interested in a warning for suspicious null checks which can't fail,
please file a new bug to make things less confusing.)

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list