[PATCH] D35891: [Support/GlobPattern] - Do not crash when pattern has characters with int value < 0.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 27 13:58:24 PDT 2017


ruiu added inline comments.


================
Comment at: lib/Support/GlobPattern.cpp:36
 
     // If it doesn't start with something like X-Y,
     // consume the first character and proceed.
----------------
Add these line before this line to remove all these casts.

  uint8_t Start = S[0];
  uint8_t End = S[2];



https://reviews.llvm.org/D35891





More information about the llvm-commits mailing list