Fix IA64 compatibility


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14866 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/Passes.cpp b/lib/CodeGen/Passes.cpp
index 2fb6cb4..b390e03 100644
--- a/lib/CodeGen/Passes.cpp
+++ b/lib/CodeGen/Passes.cpp
@@ -27,7 +27,7 @@
            cl::values(clEnumVal(simple,      "  simple register allocator"),
                       clEnumVal(local,       "  local register allocator"),
                       clEnumVal(linearscan,  "  linear scan register allocator (experimental)"),
-                      0),
+                      clEnumValEnd),
            cl::init(local));
 }
 
diff --git a/lib/CodeGen/VirtRegMap.cpp b/lib/CodeGen/VirtRegMap.cpp
index e22d72c..3d54329 100644
--- a/lib/CodeGen/VirtRegMap.cpp
+++ b/lib/CodeGen/VirtRegMap.cpp
@@ -44,7 +44,7 @@
                cl::Prefix,
                cl::values(clEnumVal(simple, "  simple spiller"),
                           clEnumVal(local,  "  local spiller"),
-                          0),
+                          clEnumValEnd),
                cl::init(local));
 }