From: Ivan Krasin Date: Fri, 12 Aug 2016 00:07:14 +0000 (+0000) Subject: WholeProgramDevirt: fix access to a non-initialized field. X-Git-Tag: llvmorg-4.0.0-rc1~12663 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=067cc24aaf63078ae31e7e0a96cabb9515f2064f;p=platform%2Fupstream%2Fllvm.git 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 llvm-svn: 278442 --- diff --git a/llvm/include/llvm/Transforms/IPO/WholeProgramDevirt.h b/llvm/include/llvm/Transforms/IPO/WholeProgramDevirt.h index ea5e2b3..1aa4c6f 100644 --- a/llvm/include/llvm/Transforms/IPO/WholeProgramDevirt.h +++ b/llvm/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;