[IR/AsmWriter] Output escape sequences if the first character isdigit()
[oota-llvm.git] / lib / IR / LLVMContext.cpp
index e8bf442b3e1db59ced07f9dac8bc2e87b4caab0c..7bcd829f9f5e0cd0897d6b88556ec793df8dc15f 100644 (file)
@@ -242,9 +242,6 @@ void LLVMContext::emitError(unsigned LocCookie, const Twine &ErrorStr) {
 
 /// Return a unique non-zero ID for the specified metadata kind.
 unsigned LLVMContext::getMDKindID(StringRef Name) const {
-  assert(!std::isdigit(Name.front()) &&
-         "Named metadata may not start with a digit");
-
   // If this is new, assign it its ID.
   return pImpl->CustomMDKindNames.insert(
                                      std::make_pair(