diff options
| author | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2017-12-19 11:59:28 +0000 |
|---|---|---|
| committer | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2017-12-19 11:59:28 +0000 |
| commit | 2130e6a080a1a5d4da6c34c6a5056ef095cb4b21 (patch) | |
| tree | c511ddecf2665edd8d9d97d98e455715b1c80c4f | |
| parent | f34eea5aa1bcd7182afd3f96b30344e6045f5d7b (diff) | |
| download | bcm5719-llvm-2130e6a080a1a5d4da6c34c6a5056ef095cb4b21.tar.gz bcm5719-llvm-2130e6a080a1a5d4da6c34c6a5056ef095cb4b21.zip | |
Fix: [YAML] Always double quote UTF-8 characters
llvm-svn: 321069
| -rw-r--r-- | llvm/include/llvm/Support/YAMLTraits.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/YAMLTraits.h b/llvm/include/llvm/Support/YAMLTraits.h index 3ee556d7533..f63fdf9a35b 100644 --- a/llvm/include/llvm/Support/YAMLTraits.h +++ b/llvm/include/llvm/Support/YAMLTraits.h @@ -551,7 +551,7 @@ inline QuotingType needsQuotes(StringRef S) { return QuotingType::Double; // Always double quote UTF-8. - if (C & 0x80 != 0) + if ((C & 0x80) != 0) return QuotingType::Double; // The character is not safe, at least simple quoting needed. |

