http://llvm.org/bugs/show_bug.cgi?id=13559
Bug #: 13559
Summary: clang fails to apply constructor alias optimization
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: LLVM Codegen
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
On this testcase:
struct X {
X(int j) : i(j) {}
int i;
};
int main() {
X x(10);
}
$ clang b6940259.cc -flto -S -o - -O3 -mllvm -disable-llvm-optzns
emits a @_ZN1XC1Ei that calls @_ZN1XC2Ei. It should just be an alias.
--
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