summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/ExpressionSourceCode.cpp
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2016-01-19 22:47:51 +0000
committerDavide Italiano <davide@freebsd.org>2016-01-19 22:47:51 +0000
commit13fe2a9517e93ae10cca848b5ebf87a1de17bffb (patch)
tree21acd07f305bac0287d581a74debe113704d8ea8 /lldb/source/Expression/ExpressionSourceCode.cpp
parentdba78e676fec7ec801118263166fb12abf026fb3 (diff)
downloadbcm5719-llvm-13fe2a9517e93ae10cca848b5ebf87a1de17bffb.tar.gz
bcm5719-llvm-13fe2a9517e93ae10cca848b5ebf87a1de17bffb.zip
Placate MVSC after my last commit.
Zachary introduced the 'default' case explicitly to placate a warning in the Microsoft compiler but that broke clang with -Werror. The new code should keep both compilers happy. llvm-svn: 258212
Diffstat (limited to 'lldb/source/Expression/ExpressionSourceCode.cpp')
-rw-r--r--lldb/source/Expression/ExpressionSourceCode.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Expression/ExpressionSourceCode.cpp b/lldb/source/Expression/ExpressionSourceCode.cpp
index c4ab7a95d7a..93bac62c43c 100644
--- a/lldb/source/Expression/ExpressionSourceCode.cpp
+++ b/lldb/source/Expression/ExpressionSourceCode.cpp
@@ -106,8 +106,6 @@ public:
{
case CURRENT_FILE_NOT_YET_PUSHED:
return true;
- case CURRENT_FILE_POPPED:
- return false;
case CURRENT_FILE_PUSHED:
// If we are in file included in the current file,
// the entry should be added.
@@ -118,6 +116,8 @@ public:
return false;
else
return true;
+ default:
+ return false;
}
}
OpenPOWER on IntegriCloud