[llvm] 347c5d6 - Hash.cpp: include ErrorHandling.h (#194553)

via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 28 00:15:20 PDT 2026


Author: Fangrui Song
Date: 2026-04-28T07:15:15Z
New Revision: 347c5d6842effdd566b8014b61bf669d0f4a5fdd

URL: https://github.com/llvm/llvm-project/commit/347c5d6842effdd566b8014b61bf669d0f4a5fdd
DIFF: https://github.com/llvm/llvm-project/commit/347c5d6842effdd566b8014b61bf669d0f4a5fdd.diff

LOG: Hash.cpp: include ErrorHandling.h (#194553)

Hash.cpp uses llvm_unreachable but currently picks up ErrorHandling.h
only transitively through xxhash.h -> ArrayRef.h -> Hashing.h.

Added: 
    

Modified: 
    llvm/lib/Support/Hash.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Support/Hash.cpp b/llvm/lib/Support/Hash.cpp
index 38befcca86b15..d241a8a4cc753 100644
--- a/llvm/lib/Support/Hash.cpp
+++ b/llvm/lib/Support/Hash.cpp
@@ -11,6 +11,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Support/Hash.h"
+#include "llvm/Support/ErrorHandling.h"
 #include "llvm/Support/xxhash.h"
 
 using namespace llvm;


        


More information about the llvm-commits mailing list