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.
1 parent a50bd0d commit b37bd78Copy full SHA for b37bd78
clang/lib/AST/Interp/InterpFrame.cpp
@@ -228,10 +228,16 @@ SourceInfo InterpFrame::getSource(CodePtr PC) const {
228
}
229
230
const Expr *InterpFrame::getExpr(CodePtr PC) const {
231
+ if (Func && (!Func->hasBody() || Func->getDecl()->isImplicit()) && Caller)
232
+ return Caller->getExpr(RetPC);
233
+
234
return S.getExpr(Func, PC);
235
236
237
SourceLocation InterpFrame::getLocation(CodePtr PC) const {
238
239
+ return Caller->getLocation(RetPC);
240
241
return S.getLocation(Func, PC);
242
243
0 commit comments