Clear the whole array, always.
llvm-svn: 19482
diff --git a/llvm/lib/Target/TargetLowering.cpp b/llvm/lib/Target/TargetLowering.cpp
index 5c45b4b..f2ce130 100644
--- a/llvm/lib/Target/TargetLowering.cpp
+++ b/llvm/lib/Target/TargetLowering.cpp
@@ -23,7 +23,7 @@
IsLittleEndian = TD.isLittleEndian();
PointerTy = getValueType(TD.getIntPtrType());
- memset(UnsupportedOps, 0, ISD::BUILTIN_OP_END*sizeof(short));
+ memset(UnsupportedOps, 0, 128*sizeof(short));
memset(RegClassForVT, 0,MVT::LAST_VALUETYPE*sizeof(TargetRegisterClass*));
}