File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -626,10 +626,12 @@ class IRGenSILFunction :
626
626
StringRef Name, unsigned ArgNo,
627
627
Alignment Align = Alignment(0 )) {
628
628
auto Ty = Storage->getType ();
629
- if (IGM.IRGen .Opts .Optimize || (ArgNo == 0 ) ||
629
+ if (IGM.IRGen .Opts .Optimize ||
630
630
isa<llvm::AllocaInst>(Storage) ||
631
631
isa<llvm::UndefValue>(Storage) ||
632
- Ty == IGM.RefCountedPtrTy ) { // No debug info is emitted for refcounts.
632
+ Ty == IGM.RefCountedPtrTy ) // No debug info is emitted for refcounts.
633
+ return Storage;
634
+ if (ArgNo == 0 ) {
633
635
// Account for bugs in LLVM.
634
636
//
635
637
// - The LLVM type legalizer currently doesn't update debug
Original file line number Diff line number Diff line change 7
7
// RUN: %target-swift-frontend %t.swift -g -c -o %t.o
8
8
// RUN: llvm-dwarfdump --debug-dump=info %t.o \
9
9
// RUN: | FileCheck %t.swift --check-prefix=DWARF
10
+ // RUN: %target-swift-frontend %t.swift -O -g -emit-ir -o - \
11
+ // RUN: | FileCheck %t.swift --check-prefix=OPTZNS
12
+
13
+ // OPTZNS-NOT: alloca{{.*}}.addr
10
14
11
15
public class C {
12
16
let member : Int
You can’t perform that action at this time.
0 commit comments