1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

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;