From: Chris Lattner Date: Thu, 3 Aug 2006 00:16:56 +0000 (+0000) Subject: Work around a bug in gcc 3.3.5, reported by a user X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=8653b37ab97ce69e8ff81e28f702ae94e20f6dec;p=oota-llvm.git Work around a bug in gcc 3.3.5, reported by a user git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29489 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/Passes.cpp b/lib/CodeGen/Passes.cpp index 4344612f3a6..8cf1a587ac6 100644 --- a/lib/CodeGen/Passes.cpp +++ b/lib/CodeGen/Passes.cpp @@ -35,7 +35,7 @@ namespace { cl::opt > RegAlloc("regalloc", - cl::init(createLinearScanRegisterAllocator), + cl::init(&createLinearScanRegisterAllocator), cl::desc("Register allocator to use: (default = linearscan)")); }