[llvm] r285652 - Fix a typo.

Evgeniy Stepanov via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 31 15:42:40 PDT 2016


Author: eugenis
Date: Mon Oct 31 17:42:39 2016
New Revision: 285652

URL: http://llvm.org/viewvc/llvm-project?rev=285652&view=rev
Log:
Fix a typo.

Found with PVS-Studio here: http://www.viva64.com/en/b/0446/

Modified:
    llvm/trunk/lib/Transforms/Utils/ModuleUtils.cpp

Modified: llvm/trunk/lib/Transforms/Utils/ModuleUtils.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/ModuleUtils.cpp?rev=285652&r1=285651&r2=285652&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/ModuleUtils.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/ModuleUtils.cpp Mon Oct 31 17:42:39 2016
@@ -142,7 +142,7 @@ std::pair<Function *, Function *> llvm::
     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),




More information about the llvm-commits mailing list