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

            Bug ID: 15159
           Summary: Global blocks don’t have a signature (the
                    BLOCK_HAS_SIGNATURE flag is not set)
           Product: clang
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: LLVM Codegen
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

When inspecting blocks in a project built with the latest version of Xcode (4.6
which has the following version of clang: 425.0.24 (based on LLVM 3.2svn), I
realized that global blocks do not have a signature in the descriptor member
and indeed the BLOCK_HAS_SIGNATURE flag is not set.

A quick look through CGBlocks.cpp does seem to intend that global block are
emitted with a signature given that the buildGlobalBlock function sets the
flag:

BlockFlags flags = BLOCK_IS_GLOBAL | BLOCK_HAS_SIGNATURE;

However, it doesn’t seem to happen in practice. Is there something I am
misinterpreting or is it actually intended behaviour? I feel two blocks ought
to be inspectable in the same way, disregarding their actual type.

-- 
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