From d6d685985047634e1faf5460321e21d77ec6c1bf Mon Sep 17 00:00:00 2001 From: Meador Inge Date: Mon, 26 Nov 2012 20:37:23 +0000 Subject: [PATCH] Fix a comment bug in toascii simplifier 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 --- lib/Transforms/Utils/SimplifyLibCalls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/Utils/SimplifyLibCalls.cpp b/lib/Transforms/Utils/SimplifyLibCalls.cpp index 85de642b1ada..2e494fd1bcf9 100644 --- a/lib/Transforms/Utils/SimplifyLibCalls.cpp +++ b/lib/Transforms/Utils/SimplifyLibCalls.cpp @@ -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)); }