Переглянути джерело

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
Evgeniy Stepanov 8 роки тому
батько
коміт
008e98f424
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      lib/Transforms/Utils/ModuleUtils.cpp

+ 1 - 1
lib/Transforms/Utils/ModuleUtils.cpp

@@ -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),