Update LLVM (#838)
* Change how lang defaults are set to match updated llvm
* Update test to avoid new warning
diff --git a/lib/Compiler.cpp b/lib/Compiler.cpp
index d1572d4..ec283bf 100644
--- a/lib/Compiler.cpp
+++ b/lib/Compiler.cpp
@@ -527,9 +527,8 @@
// We manually include the OpenCL headers below, so this vector is unused.
std::vector<std::string> includes;
- instance.getInvocation().setLangDefaults(
- instance.getLangOpts(), clang::InputKind(clang::Language::OpenCL), triple,
- includes, standard);
+ LangOptions::setLangDefaults(instance.getLangOpts(), clang::Language::OpenCL,
+ triple, includes, standard);
// Override the C99 inline semantics to accommodate for more OpenCL C
// programs in the wild.