[llvm-bugs] [Bug 41479] globaldce outputs an empty module

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Apr 19 13:49:36 PDT 2019


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

Reid Kleckner <rnk at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
                 CC|                            |rnk at google.com
             Status|NEW                         |RESOLVED

--- Comment #2 from Reid Kleckner <rnk at google.com> ---
> $opt -coro-cleanup -internalize hello.bc -o hello1.bc

Once you've done this, you've internalized 'main', so your program now lacks an
entry point. GlobalDCE just cleans up after that.

I think this is working-as-intended. When you run internalize, you have to
provide a list of externally visible entry points with the
-internalize-public-api-list/file options. r166795 changed internalize to not
implicitly consider "main" as the entry point, so I think this is WAI.

-- 
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/20190419/308930db/attachment.html>


More information about the llvm-bugs mailing list