[llvm-bugs] [Bug 40312] New: LTO fails with "Called function is not the same type as the call"
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Jan 14 16:14:52 PST 2019
https://bugs.llvm.org/show_bug.cgi?id=40312
Bug ID: 40312
Summary: LTO fails with "Called function is not the same type
as the call"
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Interprocedural Optimizations
Assignee: unassignedbugs at nondot.org
Reporter: pirama at google.com
CC: llvm-bugs at lists.llvm.org
This happens with LTO and CFI:
Called function is not the same type as the call!
tail call void @EC_KEY_free(%struct.ec_key_st* %5) #22, !dbg !33425
in function _ZN9keymaster5EcKey13EvpToInternalEPK11evp_pkey_st
LLVM ERROR: Broken function found, compilation aborted!
The failures are caused by Clang change r335385 (originally landed as r335284)
and LLVM change r335145.
I am attaching lld's repro.tar which can be run as:
$ tar xvf repro.tar
$ cd repro
$ <path-to-lld> @response.txt
The problem is likely in the Clang change as reverting the two changes above
and running the link step doesn't fix the issue. I am working on narrowing
down the failure to a smaller repro (any tips on doing so with LTO are much
appreciated :)
--
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/20190115/23832e88/attachment.html>
More information about the llvm-bugs
mailing list