Skip to content

Commit 4ec6c62

Browse files
committed
Add a safe default initializer for IRGenOptions::DWARFVersion.
<rdar://problem/26472452>
1 parent 3a7a449 commit 4ec6c62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/swift/AST/IRGenOptions.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ class IRGenOptions {
166166
llvm::SanitizerCoverageOptions SanitizeCoverage;
167167

168168
IRGenOptions()
169-
: OutputKind(IRGenOutputKind::LLVMAssembly), Verify(true),
170-
Optimize(false), Sanitize(SanitizerKind::None),
169+
: DWARFVersion(2), OutputKind(IRGenOutputKind::LLVMAssembly),
170+
Verify(true), Optimize(false), Sanitize(SanitizerKind::None),
171171
DebugInfoKind(IRGenDebugInfoKind::None), UseJIT(false),
172172
DisableLLVMOptzns(false), DisableLLVMARCOpts(false),
173173
DisableLLVMSLPVectorizer(false), DisableFPElim(true), Playground(false),

0 commit comments

Comments
 (0)