[PATCH] D31632: ThinLTOBitcodeWriter: handle aliases first in filterModule

Bob Haarman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 4 16:27:39 PDT 2017


inglorion added inline comments.


================
Comment at: test/ThinLTO/X86/promote-internals.ll:13-21
+define i32 @bar() {
+  %call = call i32 @foo()
+  ret i32 %call
+}
+
+define internal i32 @foo() unnamed_addr align 2 {
+  store i8** @al, i8*** null, align 8
----------------
pcc wrote:
> Do you need these functions? I think you should be able to trigger the bug without them if you give @al external linkage.
Doing that leads to a different error ("GlobalValue not found in index"). That error is also addressed by this patch (specifically, by the change from I-> to GA->), but can be triggered with or without the change to when we process aliases. For that reason, I've elected to keep the functions in the test - but I can remove them if you really want me to.


https://reviews.llvm.org/D31632





More information about the llvm-commits mailing list