Skip to content

Commit 258c884

Browse files
committed
meld
1 parent 4eeafdf commit 258c884

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/CppInterOp/CppInterOp.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2961,7 +2961,11 @@ bool ActivateInterpreter(TInterp_t I) {
29612961
return true; // success
29622962
}
29632963

2964-
TInterp_t GetInterpreter() { return sInterpreters.back().Interpreter; }
2964+
TInterp_t GetInterpreter() {
2965+
if (sInterpreters.empty())
2966+
return nullptr;
2967+
return sInterpreters.back().Interpreter;
2968+
}
29652969

29662970
void UseExternalInterpreter(TInterp_t I) {
29672971
assert(sInterpreters.empty() && "sInterpreter already in use!");

0 commit comments

Comments
 (0)