From 88add6b31bd43042047edabad8b8d7cd9a8c270e Mon Sep 17 00:00:00 2001 From: Ivan Krasin Date: Fri, 12 Aug 2016 00:07:14 +0000 Subject: [PATCH] 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 --- include/llvm/Transforms/IPO/WholeProgramDevirt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/Transforms/IPO/WholeProgramDevirt.h b/include/llvm/Transforms/IPO/WholeProgramDevirt.h index ea5e2b337a5..1aa4c6f4f55 100644 --- a/include/llvm/Transforms/IPO/WholeProgramDevirt.h +++ b/include/llvm/Transforms/IPO/WholeProgramDevirt.h @@ -118,7 +118,7 @@ struct VirtualCallTarget { // For testing only. 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. Function *Fn;