]> granicus.if.org Git - llvm/commitdiff
Fix a typo.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Mon, 31 Oct 2016 22:42:39 +0000 (22:42 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Mon, 31 Oct 2016 22:42:39 +0000 (22:42 +0000)
Found with PVS-Studio here: http://www.viva64.com/en/b/0446/

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285652 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/ModuleUtils.cpp

index 4f8737e9b9377ee21fc460396009eab5a60d440e..be9b77b77717933ea5b6b19068d9388209e35c97 100644 (file)
@@ -142,7 +142,7 @@ std::pair<Function *, Function *> llvm::createSanitizerCtorAndInitFunctions(
     ArrayRef<Type *> InitArgTypes, ArrayRef<Value *> InitArgs,
     StringRef VersionCheckName) {
   assert(!InitName.empty() && "Expected init function name");
-  assert(InitArgTypes.size() == InitArgTypes.size() &&
+  assert(InitArgs.size() == InitArgTypes.size() &&
          "Sanitizer's init function expects different number of arguments");
   Function *Ctor = Function::Create(
       FunctionType::get(Type::getVoidTy(M.getContext()), false),