Skip to content

Commit

Permalink
Fix a comment bug in toascii simplifier
Browse files Browse the repository at this point in the history
When I migrated the toascii simplifier in r168580 Benjamin Kramer noticed
a bug in one of the comments that I migrated.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168605 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
meadori committed Nov 26, 2012
1 parent d7aa323 commit d6d6859
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Transforms/Utils/SimplifyLibCalls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,7 @@ struct ToAsciiOpt : public LibCallOptimization {
!FT->getParamType(0)->isIntegerTy(32))
return 0;

// isascii(c) -> c & 0x7f
// toascii(c) -> c & 0x7f
return B.CreateAnd(CI->getArgOperand(0),
ConstantInt::get(CI->getType(),0x7F));
}
Expand Down

0 comments on commit d6d6859

Please sign in to comment.