http://llvm.org/bugs/show_bug.cgi?id=2933
Summary: Inline attribute on function gives the wrong linkage
attribute in LLVM IR
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Basic
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
CC: [email protected]
When I define an inlined C function like: "inline int f(...) {...}" clang
compiles it to the following LLVM IR:
define weak i32 @f(i32 %input) nounwind { ...
This actually prevents f from being inlined.
llvm-gcc will create the correct result:
define linkonce i32 @f(i32 %input) { ....
which will be inlined correctly.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs