diff --git a/clang/lib/AST/Interp/State.cpp b/clang/lib/AST/Interp/State.cpp index f67bde1082fa0..9a327fb810de0 100644 --- a/clang/lib/AST/Interp/State.cpp +++ b/clang/lib/AST/Interp/State.cpp @@ -126,9 +126,9 @@ void State::addCallStack(unsigned Limit) { // Walk the call stack and add the diagnostics. unsigned CallIdx = 0; - Frame *Top = getCurrentFrame(); + const Frame *Top = getCurrentFrame(); const Frame *Bottom = getBottomFrame(); - for (Frame *F = Top; F != Bottom; F = F->getCaller(), ++CallIdx) { + for (const Frame *F = Top; F != Bottom; F = F->getCaller(), ++CallIdx) { SourceLocation CallLocation = F->getCallLocation(); // Skip this call?