Skip to content

Commit b0335a1

Browse files
committed
---
yaml --- r: 348114 b: refs/heads/master c: 1bf7d48 h: refs/heads/master
1 parent 83ec6ff commit b0335a1

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 5e5f662fb7ab1a342a34efed579e590bb3097db7
2+
refs/heads/master: 1bf7d48111a10a57c8344281df58346bb1e61bd5
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/lib/IRGen/IRGenDebugInfo.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2169,11 +2169,6 @@ void IRGenDebugInfoImpl::emitVariableDeclaration(
21692169
if (Indirection)
21702170
Operands.push_back(llvm::dwarf::DW_OP_deref);
21712171

2172-
// There are variables without storage, such as "struct { func foo() {}
2173-
// }". Emit them as constant 0.
2174-
if (isa<llvm::UndefValue>(Piece))
2175-
Piece = llvm::ConstantInt::get(IGM.Int64Ty, 0);
2176-
21772172
if (IsPiece) {
21782173
// Advance the offset and align it for the next piece.
21792174
OffsetInBits += llvm::alignTo(SizeInBits, AlignInBits);

trunk/test/DebugInfo/nostorage.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ struct AStruct {}
2525

2626
// CHECK2: define{{.*}}app
2727
public func app() {
28-
// No members? No storage! Emitted as a constant 0, because.
29-
// CHECK2: call void @llvm.dbg.value(metadata i{{.*}} 0,
28+
// No members? No storage!
29+
// CHECK2: call void @llvm.dbg.value(metadata {{.*}}* undef,
3030
// CHECK2-SAME: metadata ![[AT:.*]], metadata
3131
// CHECK2: ![[AT]] = !DILocalVariable(name: "at",{{.*}}line: [[@LINE+1]]
3232
var at = AStruct()

0 commit comments

Comments
 (0)