[LLVMbugs] [Bug 21224] New: Missed optimization: replace the C2 constructor with the base class C2
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Oct 9 06:26:22 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=21224
Bug ID: 21224
Summary: Missed optimization: replace the C2 constructor with
the base class C2
Product: clang
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: rafael.espindola at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Given
struct bar {
bar();
~bar();
};
template<typename T>
struct foo : public bar {
};
foo<int> x;
the D2 destructor of foo is just replaced with the D2 destructor of bar, but
for the constructor we end up with
define linkonce_odr void @_ZN3fooIiEC2Ev(%struct.foo* %this) unnamed_addr #0
align 2 {
entry:
%0 = bitcast %struct.foo* %this to %struct.bar*
call void @_ZN3barC2Ev(%struct.bar* %0)
ret void
}
--
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/20141009/0bcb8936/attachment.html>
More information about the llvm-bugs
mailing list