mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-13 15:11:39 +00:00
Fix thinko noticed by Chris.
llvm-svn: 84797
This commit is contained in:
parent
59fd73831e
commit
1af3b8ca4d
@ -262,7 +262,7 @@ bool MetadataContext::isValidName(const StringRef MDName) {
|
|||||||
if (MDName.empty())
|
if (MDName.empty())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (!isalpha(MDName[1]))
|
if (!isalpha(MDName[0]))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
for (StringRef::iterator I = MDName.begin() + 1, E = MDName.end(); I != E;
|
for (StringRef::iterator I = MDName.begin() + 1, E = MDName.end(); I != E;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user