Skip to content

Commit f1eed6a

Browse files
committed
llvm: Remove the aarch64-windows @llvm.dbg.value() workaround.
llvm/llvm-project#56484
1 parent 118205e commit f1eed6a

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/codegen/llvm.zig

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6720,8 +6720,6 @@ pub const FuncGen = struct {
67206720
const operand_ty = self.typeOf(pl_op.operand);
67216721
const name = self.air.nullTerminatedString(pl_op.payload);
67226722

6723-
if (needDbgVarWorkaround(o)) return .none;
6724-
67256723
const debug_local_var = try o.builder.debugLocalVar(
67266724
try o.builder.metadataString(name),
67276725
self.file,
@@ -8826,7 +8824,6 @@ pub const FuncGen = struct {
88268824
if (self.is_naked) return arg_val;
88278825

88288826
const inst_ty = self.typeOfIndex(inst);
8829-
if (needDbgVarWorkaround(o)) return arg_val;
88308827

88318828
const name = self.air.instructions.items(.data)[@intFromEnum(inst)].arg.name;
88328829
if (name == .none) return arg_val;
@@ -11815,16 +11812,6 @@ const optional_layout_version = 3;
1181511812

1181611813
const lt_errors_fn_name = "__zig_lt_errors_len";
1181711814

11818-
/// Without this workaround, LLVM crashes with "unknown codeview register H1"
11819-
/// https://github.com/llvm/llvm-project/issues/56484
11820-
fn needDbgVarWorkaround(o: *Object) bool {
11821-
const target = o.pt.zcu.getTarget();
11822-
if (target.os.tag == .windows and target.cpu.arch == .aarch64) {
11823-
return true;
11824-
}
11825-
return false;
11826-
}
11827-
1182811815
fn compilerRtIntBits(bits: u16) u16 {
1182911816
inline for (.{ 32, 64, 128 }) |b| {
1183011817
if (bits <= b) {

0 commit comments

Comments
 (0)