File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ Pointer InterpFrame::getParamPointer(unsigned Off) {
228
228
SourceInfo InterpFrame::getSource (CodePtr PC) const {
229
229
// Implicitly created functions don't have any code we could point at,
230
230
// so return the call site.
231
- if (Func && Func->getDecl ()->isImplicit () && Caller)
231
+ if (Func && (! Func->hasBody () || Func-> getDecl ()->isImplicit () ) && Caller)
232
232
return Caller->getSource (RetPC);
233
233
234
234
return S.getSource (Func, PC);
@@ -243,7 +243,7 @@ SourceLocation InterpFrame::getLocation(CodePtr PC) const {
243
243
}
244
244
245
245
SourceRange InterpFrame::getRange (CodePtr PC) const {
246
- if (Func && Func->getDecl ()->isImplicit () && Caller)
246
+ if (Func && (! Func->hasBody () || Func-> getDecl ()->isImplicit () ) && Caller)
247
247
return Caller->getRange (RetPC);
248
248
249
249
return S.getRange (Func, PC);
You can’t perform that action at this time.
0 commit comments