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 @@ -84,7 +84,7 @@ CallInst *findControlPointCall(Module &M) {
84
84
return nullptr ;
85
85
86
86
// Find the call site of `yk_mt_control_point()`.
87
- Value::user_iterator U = CtrlPoint->user_begin ();
87
+ const Value::user_iterator U = CtrlPoint->user_begin ();
88
88
if (U == CtrlPoint->user_end ())
89
89
return nullptr ;
90
90
@@ -130,7 +130,7 @@ class YkControlPoint : public ModulePass {
130
130
131
131
// Find all live variables just before the call to the control point.
132
132
LivenessAnalysis LA (OldCtrlPointCall->getFunction ());
133
- std::set<Value *> LiveVals = LA.getLiveVarsBefore (OldCtrlPointCall);
133
+ const std::set<Value *> LiveVals = LA.getLiveVarsBefore (OldCtrlPointCall);
134
134
if (LiveVals.size () == 0 ) {
135
135
Context.emitError (
136
136
" The interpreter loop has no live variables!\n "
You can’t perform that action at this time.
0 commit comments