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)")); }