[llvm-bugs] [Bug 26455] New: no warning about implicit integer to pointer conversions on x86_64

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Feb 3 08:30:09 PST 2016


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

            Bug ID: 26455
           Summary: no warning about implicit integer to pointer
                    conversions on x86_64
           Product: clang
           Version: unspecified
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: knut.lorenzen at degree53.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

I noticed the [CLANG_WARN_INT_CONVERSION, -Wint-conversion] produces a warning
when implicitly converting a pointer into an integer for the ARM architectures,
but not for x86.

steps to reproduce: 
- in Xcode, create a project for iOS
- add an ObjC method that has a BOOL as return type, but returns a pointer in
the implementation
- build for armv7/arm64 (generic iOS device) - will produce a warning
- build for x86_64 (iOS simulator) - no warning!

Apple LLVM version 7.0.2 (clang-700.1.81)
Xcode 7.2.1 
OS X 10.11 El Capitan

-- 
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/20160203/f77f5051/attachment.html>


More information about the llvm-bugs mailing list