From 1af3b8ca4d78635aec1967136e621e24a7af5b91 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Wed, 21 Oct 2009 23:29:32 +0000 Subject: [PATCH] Fix thinko noticed by Chris. llvm-svn: 84797 --- lib/VMCore/Metadata.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/VMCore/Metadata.cpp b/lib/VMCore/Metadata.cpp index 92e4910e422..365fe8b65ff 100644 --- a/lib/VMCore/Metadata.cpp +++ b/lib/VMCore/Metadata.cpp @@ -262,7 +262,7 @@ bool MetadataContext::isValidName(const StringRef MDName) { if (MDName.empty()) return false; - if (!isalpha(MDName[1])) + if (!isalpha(MDName[0])) return false; for (StringRef::iterator I = MDName.begin() + 1, E = MDName.end(); I != E;