Fix thinko noticed by Chris.

llvm-svn: 84797
This commit is contained in:
Benjamin Kramer 2009-10-21 23:29:32 +00:00
parent 59fd73831e
commit 1af3b8ca4d

View File

@ -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;