davidxl added inline comments. ================ Comment at: lib/profile/InstrProfilingFile.c:159 @@ +158,3 @@ + HostNameLength = strlen(Hostname); + if (HostNameLength <= 0) + return -1; ---------------- Is this check necessary? http://reviews.llvm.org/D16371