[LLVMbugs] [Bug 20803] New: dropped dllimport is not reflected at codegen time if the entity is not used afterwards

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Aug 29 10:29:34 PDT 2014


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

            Bug ID: 20803
           Summary: dropped dllimport is not reflected at codegen time if
                    the entity is not used afterwards
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: hans at chromium.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

For example:

  __declspec(dllimport) extern int foo;
  int f() { return foo; }
  extern int foo; // dllimport ignored

The last declaration of foo makes us drop the dllimport attribute, but the
declaration has already been codegen'ed and will not be changed unless the
variable is referenced again.

-- 
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/20140829/feece243/attachment.html>


More information about the llvm-bugs mailing list