Fix IA64 compatibility

llvm-svn: 14866
diff --git a/llvm/lib/CodeGen/Passes.cpp b/llvm/lib/CodeGen/Passes.cpp
index 2fb6cb4..b390e03 100644
--- a/llvm/lib/CodeGen/Passes.cpp
+++ b/llvm/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/llvm/lib/CodeGen/VirtRegMap.cpp b/llvm/lib/CodeGen/VirtRegMap.cpp
index e22d72c..3d54329 100644
--- a/llvm/lib/CodeGen/VirtRegMap.cpp
+++ b/llvm/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));
 }