update getfunctionbody (#4396)

This commit is contained in:
Ashwini Khade 2020-07-02 09:00:37 -07:00 committed by GitHub
parent 3bb6a865cc
commit ef602835b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -113,7 +113,7 @@ class Node {
initialization for such nodes also happens during node creation. Therefore,
initialization of function body will happen via this method only in case 2 mentioned above.
*/
const Function* GetFunctionBody(bool try_int_func_body = true) noexcept;
const Function* GetFunctionBody(bool try_init_func_body = true);
/** Gets the function body if applicable otherwise nullptr. */
const Function* GetFunctionBody() const noexcept;

View file

@ -433,7 +433,7 @@ void Node::SetNodeType(Node::Type node_type) noexcept {
node_type_ = node_type;
}
const Function* Node::GetFunctionBody(bool try_init_func_body) noexcept {
const Function* Node::GetFunctionBody(bool try_init_func_body) {
if (nullptr != func_body_) {
return func_body_;
}