[llvm] 0f9f951 - [NFC] Add optional include to Format.h

Evan Wilde via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 8 21:12:20 PDT 2023


Author: Evan Wilde
Date: 2023-07-08T21:02:17-07:00
New Revision: 0f9f95146a7fc6fa4f9bc3c1aa2a23386f521dac

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

LOG: [NFC] Add optional include to Format.h

Format.h uses std::optional but doesn't include the optional header
resulting in a build failure due to a missing 'optional' type.

Reviewed By: compnerd, mib

Differential Revision: https://reviews.llvm.org/D154664

Added: 
    

Modified: 
    llvm/include/llvm/Support/Format.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Support/Format.h b/llvm/include/llvm/Support/Format.h
index 3b93a0f206523c..89b6ae35ba5de3 100644
--- a/llvm/include/llvm/Support/Format.h
+++ b/llvm/include/llvm/Support/Format.h
@@ -28,6 +28,7 @@
 #include "llvm/Support/DataTypes.h"
 #include <cassert>
 #include <cstdio>
+#include <optional>
 #include <tuple>
 #include <utility>
 


        


More information about the llvm-commits mailing list