瀏覽代碼

Update the LLVM library version in use. (#2633)

This also fixes a couple issues with the newer version; makeArrayRef is deprecated, and ErrorHandling is now needed for llvm_unreachable.
Jon Ross-Perkins 3 年之前
父節點
當前提交
5fa6f04d83
共有 3 個文件被更改,包括 4 次插入3 次删除
  1. 2 2
      WORKSPACE
  2. 1 0
      common/check_internal.cpp
  3. 1 1
      explorer/ast/declaration.h

+ 2 - 2
WORKSPACE

@@ -112,7 +112,7 @@ http_archive(
 
 # We pin to specific upstream commits and try to track top-of-tree reasonably
 # closely rather than pinning to a specific release.
-llvm_version = "ecfa2d3d9943a48411d04a4b3103c42b4653d9af"
+llvm_version = "219ba2fb7b0ae89101f3c81a47fe4fc4aa80dea4"
 
 http_archive(
     name = "llvm-raw",
@@ -122,7 +122,7 @@ http_archive(
         "@carbon//bazel/patches/llvm:0001_Patch_for_mallinfo2_when_using_Bazel_build_system.patch",
         "@carbon//bazel/patches/llvm:0002_Added_Bazel_build_for_compiler_rt_fuzzer.patch",
     ],
-    sha256 = "8e9cbb937b1a40536cd809e09603a1810d86a8c314fee0cca36fc493e78289e5",
+    sha256 = "8b2fa8ae3e434577b4fdd1e91b8990b0651776bd78cf4fbf9b709dcdcdbfbd21",
     strip_prefix = "llvm-project-{0}".format(llvm_version),
     urls = ["https://github.com/llvm/llvm-project/archive/{0}.tar.gz".format(llvm_version)],
 )

+ 1 - 0
common/check_internal.cpp

@@ -4,6 +4,7 @@
 
 #include "common/check_internal.h"
 
+#include "llvm/Support/ErrorHandling.h"
 #include "llvm/Support/Signals.h"
 
 namespace Carbon::Internal {

+ 1 - 1
explorer/ast/declaration.h

@@ -161,7 +161,7 @@ class DeclaredName {
   // Returns a range containing the components of the name other than the final
   // component.
   auto qualifiers() const -> llvm::ArrayRef<NameComponent> {
-    return llvm::makeArrayRef(components_).drop_back();
+    return llvm::ArrayRef(components_).drop_back();
   }
 
   // Returns the innermost name, which is the unqualified name of the entity