summaryrefslogtreecommitdiff
path: root/lib/CodeGen/Passes.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-08-03 00:16:56 +0000
committerChris Lattner <sabre@nondot.org>2006-08-03 00:16:56 +0000
commit8653b37ab97ce69e8ff81e28f702ae94e20f6dec (patch)
tree8794da79861042d173f4f29109fdc1cb818179af /lib/CodeGen/Passes.cpp
parent59a2798a3255c4346bd40f93d8b38784f30967b5 (diff)
downloadllvm-8653b37ab97ce69e8ff81e28f702ae94e20f6dec.tar.gz
llvm-8653b37ab97ce69e8ff81e28f702ae94e20f6dec.tar.bz2
llvm-8653b37ab97ce69e8ff81e28f702ae94e20f6dec.tar.xz
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
Diffstat (limited to 'lib/CodeGen/Passes.cpp')
-rw-r--r--lib/CodeGen/Passes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/Passes.cpp b/lib/CodeGen/Passes.cpp
index 4344612f3a..8cf1a587ac 100644
--- a/lib/CodeGen/Passes.cpp
+++ b/lib/CodeGen/Passes.cpp
@@ -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)"));
}