aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/VirtualFileSystem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Support/VirtualFileSystem.cpp')
-rw-r--r--llvm/lib/Support/VirtualFileSystem.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/Support/VirtualFileSystem.cpp b/llvm/lib/Support/VirtualFileSystem.cpp
index dd820c1..3f6c434 100644
--- a/llvm/lib/Support/VirtualFileSystem.cpp
+++ b/llvm/lib/Support/VirtualFileSystem.cpp
@@ -1318,12 +1318,13 @@ class llvm::vfs::RedirectingFileSystemParser {
if (!parseScalarString(N, Value, Storage))
return false;
- if (Value.equals_lower("true") || Value.equals_lower("on") ||
- Value.equals_lower("yes") || Value == "1") {
+ if (Value.equals_insensitive("true") || Value.equals_insensitive("on") ||
+ Value.equals_insensitive("yes") || Value == "1") {
Result = true;
return true;
- } else if (Value.equals_lower("false") || Value.equals_lower("off") ||
- Value.equals_lower("no") || Value == "0") {
+ } else if (Value.equals_insensitive("false") ||
+ Value.equals_insensitive("off") ||
+ Value.equals_insensitive("no") || Value == "0") {
Result = false;
return true;
}