-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 642 - the cover rate of passes #643
Conversation
Addresses #642.
Addresses #642.
Addresses #642.
Addresses #642.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. Can you please make sure the code follows the coding conventions in https://github.com/phillipstanleymarbell/Noisy-lang-compiler/blob/master/README-CodingConventions.md ?
if (isa<GetElementPtrInst>(llvmIrInstruction) && isa<Argument>(llvmIrInstruction->getOperand(0))) | ||
break; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please always use brackets in if
statements, even if there is only one statement in the conditional branch. See coding conventions here: https://github.com/phillipstanleymarbell/Noisy-lang-compiler/blob/master/README-CodingConventions.md
auto instType = llvmIrInstruction->getType(); | ||
auto typeId = instType->getTypeID(); | ||
if (typeId == Type::PointerTyID) | ||
{ | ||
instType = instType->getPointerElementType(); | ||
typeId = instType->getTypeID(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is indentation mismatched here?
address #642