fixed a linting error in action.cpp (#2844)

There was a warning "Unchecked access to optional value" in this piece of code inside `action.cpp`
```cpp
  if (this->scope().has_value()) {
    out << " " << *this->scope();a
  }
```
Fixed it by accessing `scope_` directly rather than using `this->scope()`.
This commit is contained in:
Prabhat Sachdeva
2023-05-23 08:17:55 -07:00
committed by GitHub
parent 38538ff97f
commit c1722d9bf2
+2 -2
View File
@@ -152,8 +152,8 @@ void Action::Print(llvm::raw_ostream& out) const {
}
out << "]]";
}
if (this->scope().has_value()) {
out << " " << *this->scope();
if (scope_.has_value()) {
out << " " << *scope_;
}
}