[Lldb-commits] [lldb] r330823 - Fix -Wswitch warning after r330790.
Benjamin Kramer via lldb-commits
lldb-commits at lists.llvm.org
Wed Apr 25 06:22:48 PDT 2018
Author: d0k
Date: Wed Apr 25 06:22:47 2018
New Revision: 330823
URL: http://llvm.org/viewvc/llvm-project?rev=330823&view=rev
Log:
Fix -Wswitch warning after r330790.
source/Symbol/ClangASTContext.cpp:391:13: error: enumeration value 'HIP' not handled in switch [-Werror,-Wswitch]
switch (IK.getLanguage()) {
Modified:
lldb/trunk/source/Symbol/ClangASTContext.cpp
Modified: lldb/trunk/source/Symbol/ClangASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/ClangASTContext.cpp?rev=330823&r1=330822&r2=330823&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/ClangASTContext.cpp (original)
+++ lldb/trunk/source/Symbol/ClangASTContext.cpp Wed Apr 25 06:22:47 2018
@@ -408,6 +408,9 @@ static void ParseLangArgs(LangOptions &O
case InputKind::ObjCXX:
LangStd = LangStandard::lang_gnucxx98;
break;
+ case InputKind::HIP:
+ LangStd = LangStandard::lang_hip;
+ break;
}
}
More information about the lldb-commits
mailing list