@@ -210,28 +210,28 @@ Pointer InterpFrame::getParamPointer(unsigned Off) {
210
210
SourceInfo InterpFrame::getSource (CodePtr PC) const {
211
211
// Implicitly created functions don't have any code we could point at,
212
212
// so return the call site.
213
- if (Func && ( !Func->hasBody () || Func-> getDecl ()-> isImplicit () ) && Caller)
213
+ if (Func && !Func->hasBody () && Caller)
214
214
return Caller->getSource (RetPC);
215
215
216
216
return S.getSource (Func, PC);
217
217
}
218
218
219
219
const Expr *InterpFrame::getExpr (CodePtr PC) const {
220
- if (Func && ( !Func->hasBody () || Func-> getDecl ()-> isImplicit () ) && Caller)
221
- return Caller->getExpr (RetPC );
220
+ if (Func && !Func->hasBody () && Caller)
221
+ return Caller->getExpr (PC );
222
222
223
223
return S.getExpr (Func, PC);
224
224
}
225
225
226
226
SourceLocation InterpFrame::getLocation (CodePtr PC) const {
227
- if (Func && ( !Func->hasBody () || Func-> getDecl ()-> isImplicit () ) && Caller)
227
+ if (Func && !Func->hasBody () && Caller)
228
228
return Caller->getLocation (RetPC);
229
229
230
230
return S.getLocation (Func, PC);
231
231
}
232
232
233
233
SourceRange InterpFrame::getRange (CodePtr PC) const {
234
- if (Func && ( !Func->hasBody () || Func-> getDecl ()-> isImplicit () ) && Caller)
234
+ if (Func && !Func->hasBody () && Caller)
235
235
return Caller->getRange (RetPC);
236
236
237
237
return S.getRange (Func, PC);
0 commit comments