[llvm] adc4a41 - Fix module build after removing None.h from STLExtras.h

Steven Wu via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 12 08:59:44 PST 2022


Author: Steven Wu
Date: 2022-12-12T08:59:32-08:00
New Revision: adc4a41b8ae8b57f1ba7e3e206ab1aeac384d334

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

LOG: Fix module build after removing None.h from STLExtras.h

Add declaration for NoneType in BitcodeConvenience.h.

Added: 
    

Modified: 
    llvm/include/llvm/Bitcode/BitcodeConvenience.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Bitcode/BitcodeConvenience.h b/llvm/include/llvm/Bitcode/BitcodeConvenience.h
index 0060d014ba829..2de91247187fc 100644
--- a/llvm/include/llvm/Bitcode/BitcodeConvenience.h
+++ b/llvm/include/llvm/Bitcode/BitcodeConvenience.h
@@ -35,6 +35,8 @@
 #include <cstdint>
 
 namespace llvm {
+typedef std::nullopt_t NoneType;
+
 namespace detail {
 /// Convenience base for all kinds of bitcode abbreviation fields.
 ///


        


More information about the llvm-commits mailing list