Skip to content

Commit

Permalink
Fix bonehead mistake in get_md_bool() (#8469)
Browse files Browse the repository at this point in the history
* Fix bonehead mistake in get_md_bool()

* Update CodeGen_Internal.cpp
  • Loading branch information
steven-johnson authored Nov 6, 2024
1 parent a1723e7 commit 2f6072b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/CodeGen_Internal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -578,9 +578,11 @@ bool get_md_int(llvm::Metadata *value, int64_t &result) {
bool get_md_bool(llvm::Metadata *value, bool &result) {
int64_t r;
if (!get_md_int(value, r)) {
result = false;
return false;
}
return r != 0;
result = r != 0;
return true;
}
bool get_md_string(llvm::Metadata *value, std::string &result) {
if (!value) {
Expand Down

0 comments on commit 2f6072b

Please sign in to comment.