[llvm] r321069 - Fix: [YAML] Always double quote UTF-8 characters
Francis Visoiu Mistrih via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 19 03:59:29 PST 2017
Author: thegameg
Date: Tue Dec 19 03:59:28 2017
New Revision: 321069
URL: http://llvm.org/viewvc/llvm-project?rev=321069&view=rev
Log:
Fix: [YAML] Always double quote UTF-8 characters
Modified:
llvm/trunk/include/llvm/Support/YAMLTraits.h
Modified: llvm/trunk/include/llvm/Support/YAMLTraits.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/YAMLTraits.h?rev=321069&r1=321068&r2=321069&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/YAMLTraits.h (original)
+++ llvm/trunk/include/llvm/Support/YAMLTraits.h Tue Dec 19 03:59:28 2017
@@ -551,7 +551,7 @@ inline QuotingType needsQuotes(StringRef
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.
More information about the llvm-commits
mailing list