Work around a bug in gcc 3.3.5, reported by a user
authorChris Lattner <sabre@nondot.org>
Thu, 3 Aug 2006 00:16:56 +0000 (00:16 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 3 Aug 2006 00:16:56 +0000 (00:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29489 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/Passes.cpp

index 4344612f3a673ed69484bce6002c8064ab1b9684..8cf1a587ac6003dad5a5bd3f7f5264dabc6db89e 100644 (file)
@@ -35,7 +35,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)")); 
 }