summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>2017-12-19 11:59:28 +0000
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>2017-12-19 11:59:28 +0000
commit2130e6a080a1a5d4da6c34c6a5056ef095cb4b21 (patch)
treec511ddecf2665edd8d9d97d98e455715b1c80c4f
parentf34eea5aa1bcd7182afd3f96b30344e6045f5d7b (diff)
downloadbcm5719-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.h2
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.
OpenPOWER on IntegriCloud