[PATCH] D123816: [InstCombine] Fold strnlen with a bound of zero and one.

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 25 13:52:15 PDT 2022


nikic added inline comments.


================
Comment at: llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp:648
+        Value *Cmp = B.CreateICmpNE(CharVal, ZeroChar, "strnlen.char0cmp");
+        return B->CreateZExt(Cmp, CI->getType());
+      }
----------------
This should be `B.`, causes the build failure in pre-merge checks.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D123816/new/

https://reviews.llvm.org/D123816



More information about the llvm-commits mailing list