From 64a4a1361745c449e1a328258fc771cd625f4210 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Sun, 5 Sep 2010 13:42:32 +0000 Subject: [PATCH] Added initialisers for reduction rule counters. llvm-svn: 113108 --- llvm/lib/CodeGen/PBQP/Solution.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/llvm/lib/CodeGen/PBQP/Solution.h b/llvm/lib/CodeGen/PBQP/Solution.h index 047fd04c7cb8..9c40ed7070a0 100644 --- a/llvm/lib/CodeGen/PBQP/Solution.h +++ b/llvm/lib/CodeGen/PBQP/Solution.h @@ -34,6 +34,10 @@ namespace PBQP { public: + /// \brief Initialise an empty solution. + Solution() + : r0Reductions(0), r1Reductions(0), r2Reductions(0), rNReductions(0) {} + /// \brief Number of nodes for which selections have been made. /// @return Number of nodes for which selections have been made. unsigned numNodes() const { return selections.size(); }