-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attach debug locations to auto-generated
initialize
methods (#11313)
- Loading branch information
1 parent
8a8e36d
commit 40fe965
Showing
3 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
class Foo(T) | ||
# CHECK: define internal %"Foo(Int32)"* @"*Foo(Int32)@Foo(T)::new:Foo(Int32)"(i32 %self) | ||
# CHECK-SAME: !dbg [[LOC1:![0-9]+]] | ||
# CHECK-NEXT: alloca: | ||
# CHECK-NEXT: %_ = alloca %"Foo(Int32)"* | ||
# CHECK-SAME: !dbg [[LOC2:![0-9]+]] | ||
# CHECK: [[LOC2]] = !DILocation | ||
# CHECK-SAME: scope: [[LOC1]] | ||
end | ||
|
||
Foo(Int32).new |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters