File tree 3 files changed +3
-3
lines changed 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 25
25
#include " swift/Basic/OptimizationMode.h"
26
26
#include " swift/Config.h"
27
27
#include " clang/Basic/PointerAuthOptions.h"
28
- #include " llvm/ADT/Optional.h"
29
28
#include " llvm/IR/CallingConv.h"
30
29
// FIXME: This include is just for llvm::SanitizerCoverageOptions. We should
31
30
// split the header upstream so we don't include so much.
32
31
#include " llvm/Transforms/Instrumentation.h"
33
32
#include " llvm/Support/raw_ostream.h"
34
33
#include " llvm/Support/VersionTuple.h"
34
+ #include < optional>
35
35
#include < string>
36
36
#include < vector>
37
37
Original file line number Diff line number Diff line change 25
25
#include " swift/Basic/Sanitizers.h"
26
26
#include " swift/Driver/Util.h"
27
27
#include " llvm/ADT/DenseMap.h"
28
- #include " llvm/ADT/Optional.h"
29
28
#include " llvm/ADT/StringRef.h"
30
29
31
30
#include < functional>
32
31
#include < memory>
32
+ #include < optional>
33
33
#include < string>
34
34
35
35
namespace llvm {
Original file line number Diff line number Diff line change @@ -1346,7 +1346,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
1346
1346
1347
1347
SmallVector<llvm::Metadata *, 16 > Elements;
1348
1348
for (auto *ElemDecl : Decl->getAllElements ()) {
1349
- llvm::Optional <DebugTypeInfo> ElemDbgTy;
1349
+ std::optional <DebugTypeInfo> ElemDbgTy;
1350
1350
if (auto ArgTy = ElemDecl->getArgumentInterfaceType ()) {
1351
1351
// A variant case which carries a payload.
1352
1352
ArgTy = ElemDecl->getParentEnum ()->mapTypeIntoContext (ArgTy);
You can’t perform that action at this time.
0 commit comments