[llvm] r327273 - [Hexagon] fix 'must explicitly initialize the const member' error which clang 3.8 emits

Sam McCall via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 12 07:40:48 PDT 2018


Author: sammccall
Date: Mon Mar 12 07:40:48 2018
New Revision: 327273

URL: http://llvm.org/viewvc/llvm-project?rev=327273&view=rev
Log:
[Hexagon] fix 'must explicitly initialize the const member' error which clang 3.8 emits

Modified:
    llvm/trunk/lib/Target/Hexagon/RDFLiveness.h

Modified: llvm/trunk/lib/Target/Hexagon/RDFLiveness.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/RDFLiveness.h?rev=327273&r1=327272&r2=327273&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/RDFLiveness.h (original)
+++ llvm/trunk/lib/Target/Hexagon/RDFLiveness.h Mon Mar 12 07:40:48 2018
@@ -53,8 +53,8 @@ namespace rdf {
     using RefMap = std::map<RegisterId, NodeRefSet>;
 
     Liveness(MachineRegisterInfo &mri, const DataFlowGraph &g)
-      : DFG(g), TRI(g.getTRI()), PRI(g.getPRI()), MDT(g.getDT()),
-        MDF(g.getDF()), LiveMap(g.getPRI()), NoRegs(g.getPRI()) {}
+        : DFG(g), TRI(g.getTRI()), PRI(g.getPRI()), MDT(g.getDT()),
+          MDF(g.getDF()), LiveMap(g.getPRI()), Empty(), NoRegs(g.getPRI()) {}
 
     NodeList getAllReachingDefs(RegisterRef RefRR, NodeAddr<RefNode*> RefA,
         bool TopShadows, bool FullChain, const RegisterAggr &DefRRs);




More information about the llvm-commits mailing list