[clang-tidy] Fix a build error.
authorHaojian Wu <hokein@google.com>
Mon, 28 Jan 2019 14:07:45 +0000 (14:07 +0000)
committerHaojian Wu <hokein@google.com>
Mon, 28 Jan 2019 14:07:45 +0000 (14:07 +0000)
llvm-svn: 352364

clang-tools-extra/clang-tidy/abseil/DurationAdditionCheck.cpp

index 1ff8452..51b9f57 100644 (file)
@@ -54,7 +54,7 @@ void DurationAdditionCheck::check(const MatchFinder::MatchResult &Result) {
          rewriteExprFromNumberToDuration(Result, *Scale, Binop->getRHS()) + ")")
             .str());
   } else {
-    assert(Call == Binop->getRHS()->IgnoreParenImpCast() &&
+    assert(Call == Binop->getRHS()->IgnoreParenImpCasts() &&
            "Call should be found on the RHS");
     Hint = FixItHint::CreateReplacement(
         Binop->getSourceRange(),