Ignore:
Timestamp:
Feb 1, 2018, 3:03:46 PM (23 months ago)
Author:
matszpk
Message:

CLRadeonExtender: ROCmMetadata: Fixed checking spaces after key (do not print error if no spaces and immediate newline or comment).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/amdbin/ROCmBinaries.cpp

    r3690 r3691  
    121121    const char* afterColon = ptr;
    122122    skipSpacesToLineEnd(ptr, end);
    123     if (afterColon == ptr)
    124         throw ParseException("After key and colon must be space");
     123    if (afterColon == ptr && ptr != end && *ptr!='\n' && *ptr!='#')
     124        // only if not immediate newline or comment
     125        throw ParseException(lineNo, "After key and colon must be space");
    125126    CString keyword(keyPtr, keyEnd);
    126127    const size_t index = binaryFind(keywords, keywords+keywordsNum,
Note: See TracChangeset for help on using the changeset viewer.