Skip to content

Commit 089e076

Browse files
committed
Update the correct size of Builting.Executor, it is now 2 pointers.
Fixes an assertion while building the Concurrency module. (cherry picked from commit a6304c5)
1 parent 5b6f5d9 commit 089e076

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/IRGen/IRGenDebugInfo.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,10 +1340,9 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
13401340
}
13411341

13421342
case TypeKind::BuiltinExecutor: {
1343-
unsigned PtrSize = CI.getTargetInfo().getPointerWidth(0);
1344-
return DBuilder.createPointerType(nullptr, PtrSize, 0,
1345-
/* DWARFAddressSpace */ None,
1346-
MangledName);
1343+
return createDoublePointerSizedStruct(
1344+
Scope, "Builtin.Executor", nullptr, MainFile, 0,
1345+
llvm::DINode::FlagArtificial, MangledName);
13471346
}
13481347

13491348
case TypeKind::DynamicSelf: {

0 commit comments

Comments
 (0)