mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-06 03:38:24 +00:00
WholeProgramDevirt: fix access to a non-initialized field.
Summary: This is a follow up to r278389, where I have introduced the bug Reviewers: mehdi_amini Differential Revision: https://reviews.llvm.org/D23436 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@278442 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b9ecebcaa5
commit
88add6b31b
@ -118,7 +118,7 @@ struct VirtualCallTarget {
|
|||||||
|
|
||||||
// For testing only.
|
// For testing only.
|
||||||
VirtualCallTarget(const TypeMemberInfo *TM, bool IsBigEndian)
|
VirtualCallTarget(const TypeMemberInfo *TM, bool IsBigEndian)
|
||||||
: Fn(nullptr), TM(TM), IsBigEndian(IsBigEndian) {}
|
: Fn(nullptr), TM(TM), IsBigEndian(IsBigEndian), WasDevirt(false) {}
|
||||||
|
|
||||||
// The function stored in the vtable.
|
// The function stored in the vtable.
|
||||||
Function *Fn;
|
Function *Fn;
|
||||||
|
Loading…
Reference in New Issue
Block a user