File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2525#include " swift/Basic/OptimizationMode.h"
2626#include " swift/Config.h"
2727#include " clang/Basic/PointerAuthOptions.h"
28- #include " llvm/ADT/Optional.h"
2928#include " llvm/IR/CallingConv.h"
3029// FIXME: This include is just for llvm::SanitizerCoverageOptions. We should
3130// split the header upstream so we don't include so much.
3231#include " llvm/Transforms/Instrumentation.h"
3332#include " llvm/Support/raw_ostream.h"
3433#include " llvm/Support/VersionTuple.h"
34+ #include < optional>
3535#include < string>
3636#include < vector>
3737
Original file line number Diff line number Diff line change 2525#include " swift/Basic/Sanitizers.h"
2626#include " swift/Driver/Util.h"
2727#include " llvm/ADT/DenseMap.h"
28- #include " llvm/ADT/Optional.h"
2928#include " llvm/ADT/StringRef.h"
3029
3130#include < functional>
3231#include < memory>
32+ #include < optional>
3333#include < string>
3434
3535namespace llvm {
Original file line number Diff line number Diff line change @@ -1346,7 +1346,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
13461346
13471347 SmallVector<llvm::Metadata *, 16 > Elements;
13481348 for (auto *ElemDecl : Decl->getAllElements ()) {
1349- llvm::Optional <DebugTypeInfo> ElemDbgTy;
1349+ std::optional <DebugTypeInfo> ElemDbgTy;
13501350 if (auto ArgTy = ElemDecl->getArgumentInterfaceType ()) {
13511351 // A variant case which carries a payload.
13521352 ArgTy = ElemDecl->getParentEnum ()->mapTypeIntoContext (ArgTy);
You can’t perform that action at this time.
0 commit comments