We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ce0ad87 + 94e7582 commit b8b13d8Copy full SHA for b8b13d8
lib/IRGen/GenCall.cpp
@@ -5023,8 +5023,11 @@ static void emitRetconCoroutineEntry(
5023
for (auto *arg : finalArguments) {
5024
arguments.push_back(arg);
5025
}
5026
- ArtificialLocation Loc(IGF.getDebugScope(), IGF.IGM.DebugInfo.get(),
5027
- IGF.Builder);
+ std::optional<ArtificialLocation> Loc;
+ if (IGF.getDebugScope()) {
5028
+ Loc.emplace(IGF.getDebugScope(), IGF.IGM.DebugInfo.get(),
5029
+ IGF.Builder);
5030
+ }
5031
llvm::Value *id = IGF.Builder.CreateIntrinsicCall(idIntrinsic, arguments);
5032
5033
// Call 'llvm.coro.begin', just for consistency with the normal pattern.
0 commit comments