Correctly clone FlaggedNodes.
[oota-llvm.git] / lib / CodeGen / Passes.cpp
index 4344612f3a673ed69484bce6002c8064ab1b9684..6742146a3833aa5a63c469d661e3879230114e99 100644 (file)
@@ -2,8 +2,8 @@
 //
 //                     The LLVM Compiler Infrastructure
 //
-// This file was developed by the LLVM research group and is distributed under
-// the University of Illinois Open Source License. See LICENSE.TXT for details.
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
 //
 //===----------------------------------------------------------------------===//
 //
@@ -14,7 +14,6 @@
 
 #include "llvm/CodeGen/RegAllocRegistry.h"
 #include "llvm/CodeGen/Passes.h"
-#include <iostream>
 
 using namespace llvm;
 
@@ -35,7 +34,7 @@ namespace {
   cl::opt<RegisterRegAlloc::FunctionPassCtor, false,
           RegisterPassParser<RegisterRegAlloc> >
   RegAlloc("regalloc",
-           cl::init(createLinearScanRegisterAllocator),
+           cl::init(&createLinearScanRegisterAllocator),
            cl::desc("Register allocator to use: (default = linearscan)")); 
 }