[llvm-commits] [llvm] r162458 - /llvm/trunk/include/llvm/CodeGen/PBQP/HeuristicBase.h

Lang Hames lhames at gmail.com
Thu Aug 23 12:06:23 PDT 2012


Author: lhames
Date: Thu Aug 23 14:06:23 2012
New Revision: 162458

URL: http://llvm.org/viewvc/llvm-project?rev=162458&view=rev
Log:
Fix a stub signature. HeuristicReduce should return a bool.

This should fix a -Wdocumentation warning.

Modified:
    llvm/trunk/include/llvm/CodeGen/PBQP/HeuristicBase.h

Modified: llvm/trunk/include/llvm/CodeGen/PBQP/HeuristicBase.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/PBQP/HeuristicBase.h?rev=162458&r1=162457&r2=162458&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/PBQP/HeuristicBase.h (original)
+++ llvm/trunk/include/llvm/CodeGen/PBQP/HeuristicBase.h Thu Aug 23 14:06:23 2012
@@ -193,8 +193,9 @@
     ///        reduce list.
     /// @return True if a reduction takes place, false if the heuristic reduce
     ///         list is empty.
-    void heuristicReduce() {
+    bool heuristicReduce() {
       llvm_unreachable("Must be implemented in derived class.");
+      return false;
     }
 
     /// \brief Prepare a change in the costs on the given edge.





More information about the llvm-commits mailing list