Issue 60962
Summary -fsplit-lto-unit bitcode writer crash with ifunc and type metadata
Labels new issue
Assignees
Reporter aeubanks
    ```
$ cat /tmp/c.ll
target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
target triple = "aarch64-unknown-linux-android24"

@i = ifunc ptr (ptr, i64), ptr @hoge

define ptr @hoge() !type !0 {
bb:
  ret ptr null
}

!0 = !{i64 0, !1}
!1 = distinct !{}

$ clang++ "-target" "aarch64-unknown-linux-android24" "-flto=thin" -fsplit-lto-unit /tmp/c.ll -o /dev/null -c
clang++: ../../llvm/lib/IR/ModuleSummaryIndex.cpp:173: GlobalValueSummary *llvm::ModuleSummaryIndex::getGlobalValueSummary(uint64_t, bool) const: Assertion `VI && "GlobalValue not found in index"' failed.
```

@teresajohnson 
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to