[PECOFF] Do not print error if length of .drectve is 0.

llvm-svn: 194539
This commit is contained in:
Rui Ueyama 2013-11-13 01:19:08 +00:00
parent 74015a7084
commit 3314f56ca8
1 changed files with 3 additions and 0 deletions

View File

@ -666,6 +666,9 @@ private:
array = array.slice(3);
}
if (array.size() == 0)
return "";
size_t len = 0;
size_t e = array.size();
while (len < e && array[len] != '\0')