[llvm] r278455 - WholeProgramDevirt: initialize WasDevirt in all constructors.

Ivan Krasin via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 11 18:40:10 PDT 2016


Author: krasin
Date: Thu Aug 11 20:40:10 2016
New Revision: 278455

URL: http://llvm.org/viewvc/llvm-project?rev=278455&view=rev
Log:
WholeProgramDevirt: initialize WasDevirt in all constructors.

Summary: This is a follow up to r278389 and r278442.

Differential Revision: https://reviews.llvm.org/D23438

Modified:
    llvm/trunk/lib/Transforms/IPO/WholeProgramDevirt.cpp

Modified: llvm/trunk/lib/Transforms/IPO/WholeProgramDevirt.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/WholeProgramDevirt.cpp?rev=278455&r1=278454&r2=278455&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/WholeProgramDevirt.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/WholeProgramDevirt.cpp Thu Aug 11 20:40:10 2016
@@ -185,7 +185,7 @@ void wholeprogramdevirt::setAfterReturnV
 
 VirtualCallTarget::VirtualCallTarget(Function *Fn, const TypeMemberInfo *TM)
     : Fn(Fn), TM(TM),
-      IsBigEndian(Fn->getParent()->getDataLayout().isBigEndian()) {}
+      IsBigEndian(Fn->getParent()->getDataLayout().isBigEndian()), WasDevirt(false) {}
 
 namespace {
 




More information about the llvm-commits mailing list