Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Added error handling for values not in scope#502

Merged
georgemitenkov merged 1 commit into
llvmfrom
georgemitenkov/symtable-error-handling
Jan 26, 2021
Merged

Added error handling for values not in scope#502
georgemitenkov merged 1 commit into
llvmfrom
georgemitenkov/symtable-error-handling

Conversation

@georgemitenkov
Copy link
Copy Markdown
Collaborator

A small PR to add error handling when a non-scope value is looked up. Before, such a lookup would yield a nullptr, therefore leading to a segfault. This PR adds a lookup function that wraps around symbol lookup, and throws an error with a message if nullptr is returned.

@bbpbuildbot
Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

Copy link
Copy Markdown
Contributor

@iomaganaris iomaganaris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Good addition 👍

@georgemitenkov georgemitenkov force-pushed the georgemitenkov/symtable-error-handling branch from 587abfb to 77fe958 Compare January 25, 2021 13:36
@georgemitenkov georgemitenkov force-pushed the georgemitenkov/symtable-error-handling branch from 77fe958 to 6251a3f Compare January 25, 2021 14:06
@georgemitenkov georgemitenkov merged commit 7a8df41 into llvm Jan 26, 2021
@georgemitenkov georgemitenkov deleted the georgemitenkov/symtable-error-handling branch January 26, 2021 06:27
pramodk pushed a commit that referenced this pull request Feb 23, 2021
Added error handling when a non-scope value is looked up. Before, such a lookup would yield a nullptr, therefore leading to a segmentation fault. This PR adds a lookup function that wraps around value symbol lookup, and throws an error with a message if nullptr is returned.
pramodk pushed a commit that referenced this pull request May 8, 2021
Added error handling when a non-scope value is looked up. Before, such a lookup would yield a nullptr, therefore leading to a segmentation fault. This PR adds a lookup function that wraps around value symbol lookup, and throws an error with a message if nullptr is returned.
pramodk pushed a commit that referenced this pull request Mar 8, 2022
Added error handling when a non-scope value is looked up. Before, such a lookup would yield a nullptr, therefore leading to a segmentation fault. This PR adds a lookup function that wraps around value symbol lookup, and throws an error with a message if nullptr is returned.
iomaganaris pushed a commit that referenced this pull request May 10, 2022
Added error handling when a non-scope value is looked up. Before, such a lookup would yield a nullptr, therefore leading to a segmentation fault. This PR adds a lookup function that wraps around value symbol lookup, and throws an error with a message if nullptr is returned.
iomaganaris pushed a commit that referenced this pull request May 12, 2022
Added error handling when a non-scope value is looked up. Before, such a lookup would yield a nullptr, therefore leading to a segmentation fault. This PR adds a lookup function that wraps around value symbol lookup, and throws an error with a message if nullptr is returned.
iomaganaris pushed a commit that referenced this pull request Sep 15, 2022
Added error handling when a non-scope value is looked up. Before, such a lookup would yield a nullptr, therefore leading to a segmentation fault. This PR adds a lookup function that wraps around value symbol lookup, and throws an error with a message if nullptr is returned.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants