From 008e98f424918e2c80eb43f2cdc3c6fa76a82c5f Mon Sep 17 00:00:00 2001 From: Evgeniy Stepanov Date: Mon, 31 Oct 2016 22:42:39 +0000 Subject: [PATCH] Fix a typo. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/Utils/ModuleUtils.cpp b/lib/Transforms/Utils/ModuleUtils.cpp index 4f8737e9b93..be9b77b7771 100644 --- a/lib/Transforms/Utils/ModuleUtils.cpp +++ b/lib/Transforms/Utils/ModuleUtils.cpp @@ -142,7 +142,7 @@ std::pair llvm::createSanitizerCtorAndInitFunctions( ArrayRef InitArgTypes, ArrayRef 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), -- 2.40.0