diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:41:05 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:41:05 +0000 | 
| commit | 01095a5d43bbfde13731688ddcf6048ebb8b7721 (patch) | |
| tree | 4def12e759965de927d963ac65840d663ef9d1ea /lib/Support/StringRef.cpp | |
| parent | f0f4822ed4b66e3579e92a89f368f8fb860e218e (diff) | |
Notes
Diffstat (limited to 'lib/Support/StringRef.cpp')
| -rw-r--r-- | lib/Support/StringRef.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/lib/Support/StringRef.cpp b/lib/Support/StringRef.cpp index 7ecff2964c51..8a9da5edca84 100644 --- a/lib/Support/StringRef.cpp +++ b/lib/Support/StringRef.cpp @@ -351,12 +351,12 @@ size_t StringRef::count(StringRef Str) const {  }  static unsigned GetAutoSenseRadix(StringRef &Str) { -  if (Str.startswith("0x")) { +  if (Str.startswith("0x") || Str.startswith("0X")) {      Str = Str.substr(2);      return 16;    } -  if (Str.startswith("0b")) { +  if (Str.startswith("0b") || Str.startswith("0B")) {      Str = Str.substr(2);      return 2;    } | 
