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

            Bug ID: 24084
           Summary: clang-cl generates code for unreferenced inline
                    definitions of library builtins
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

We should not generate any code for this inline function but we do:

__declspec(noreturn) void __cdecl _exit(int _Code);
__inline void __cdecl _Exit(int status) { _exit(status); }

My guess is that we think _Exit is extern and our extern-inline compat kicks in
to force a definition.

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