aboutsummaryrefslogtreecommitdiff
path: root/llvm_mode
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2019-06-07 21:32:27 +0200
committerGitHub <noreply@github.com>2019-06-07 21:32:27 +0200
commit46e58b434acf66181bc64f82c754d3294e15bd3e (patch)
treed38a333f941d112da6f2854534fd735d90645146 /llvm_mode
parentba37bf13d60dd6d889d7125d996412f99651ef07 (diff)
parent263fd37590e0326ea9b6f91924caf3db266fc855 (diff)
downloadafl++-46e58b434acf66181bc64f82c754d3294e15bd3e.tar.gz
Merge pull request #4 from practicalswift/typo
Fix typos
Diffstat (limited to 'llvm_mode')
-rw-r--r--llvm_mode/split-compares-pass.so.cc8
-rw-r--r--llvm_mode/split-switches-pass.so.cc4
2 files changed, 6 insertions, 6 deletions
diff --git a/llvm_mode/split-compares-pass.so.cc b/llvm_mode/split-compares-pass.so.cc
index 5c16c408..25ccb3b4 100644
--- a/llvm_mode/split-compares-pass.so.cc
+++ b/llvm_mode/split-compares-pass.so.cc
@@ -259,7 +259,7 @@ bool SplitComparesTransform::simplifySignedness(Module &M) {
Instruction *icmp_inv_sig_cmp;
BasicBlock* sign_bb = BasicBlock::Create(C, "sign", end_bb->getParent(), end_bb);
if (pred == CmpInst::ICMP_SGT) {
- /* if we check for > and the op0 positiv and op1 negative then the final
+ /* if we check for > and the op0 positive and op1 negative then the final
* result is true. if op0 negative and op1 pos, the cmp must result
* in false
*/
@@ -369,7 +369,7 @@ bool SplitComparesTransform::splitCompares(Module &M, unsigned bitw) {
BasicBlock* end_bb = bb->splitBasicBlock(BasicBlock::iterator(IcmpInst));
- /* create the comparison of the top halfs of the original operands */
+ /* create the comparison of the top halves of the original operands */
Instruction *s_op0, *op0_high, *s_op1, *op1_high, *icmp_high;
s_op0 = BinaryOperator::Create(Instruction::LShr, op0, ConstantInt::get(OldIntType, bitw / 2));
@@ -403,7 +403,7 @@ bool SplitComparesTransform::splitCompares(Module &M, unsigned bitw) {
cmp_low_bb->getInstList().push_back(icmp_low);
BranchInst::Create(end_bb, cmp_low_bb);
- /* dependant on the cmp of the high parts go to the end or go on with
+ /* dependent on the cmp of the high parts go to the end or go on with
* the comparison */
auto term = bb->getTerminator();
if (pred == CmpInst::ICMP_EQ) {
@@ -448,7 +448,7 @@ bool SplitComparesTransform::splitCompares(Module &M, unsigned bitw) {
term->eraseFromParent();
BranchInst::Create(end_bb, inv_cmp_bb, icmp_high, bb);
- /* create a bb which handles the cmp of the lower halfs */
+ /* create a bb which handles the cmp of the lower halves */
BasicBlock* cmp_low_bb = BasicBlock::Create(C, "injected", end_bb->getParent(), end_bb);
op0_low = new TruncInst(op0, NewIntType);
cmp_low_bb->getInstList().push_back(op0_low);
diff --git a/llvm_mode/split-switches-pass.so.cc b/llvm_mode/split-switches-pass.so.cc
index 8d4db292..17cb62c2 100644
--- a/llvm_mode/split-switches-pass.so.cc
+++ b/llvm_mode/split-switches-pass.so.cc
@@ -152,7 +152,7 @@ BasicBlock* SplitSwitchesTransform::switchConvert(CaseVector Cases, std::vector<
}
PHINode *PN = cast<PHINode>(I);
- /* Only update the first occurence. */
+ /* Only update the first occurrence. */
unsigned Idx = 0, E = PN->getNumIncomingValues();
for (; Idx != E; ++Idx) {
if (PN->getIncomingBlock(Idx) == OrigBlock) {
@@ -276,7 +276,7 @@ bool SplitSwitchesTransform::splitSwitches(Module &M) {
}
PHINode *PN = cast<PHINode>(I);
- /* Only update the first occurence. */
+ /* Only update the first occurrence. */
unsigned Idx = 0, E = PN->getNumIncomingValues();
for (; Idx != E; ++Idx) {
if (PN->getIncomingBlock(Idx) == OrigBlock) {