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: unassignedb...@nondot.org
Reporter: pir...@google.com
CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs