From 34144cdb66a9b39d457e98a19d056da5df687109 Mon Sep 17 00:00:00 2001 From: Christopher Tetreault Date: Tue, 23 Jun 2020 10:48:08 -0700 Subject: [PATCH] [SVE] Remove calls to VectorType::getNumElements from FuzzMutate Reviewers: efriedma, bkramer, kmclaughlin, sdesmalen Reviewed By: sdesmalen Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D82212 --- lib/FuzzMutate/Operations.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/FuzzMutate/Operations.cpp b/lib/FuzzMutate/Operations.cpp index d59b3ccbe50..a37fd5454dd 100644 --- a/lib/FuzzMutate/Operations.cpp +++ b/lib/FuzzMutate/Operations.cpp @@ -302,7 +302,7 @@ static SourcePred validShuffleVectorIndex() { return ShuffleVectorInst::isValidOperands(Cur[0], Cur[1], V); }; auto Make = [](ArrayRef Cur, ArrayRef Ts) { - auto *FirstTy = cast(Cur[0]->getType()); + auto *FirstTy = cast(Cur[0]->getType()); auto *Int32Ty = Type::getInt32Ty(Cur[0]->getContext()); // TODO: It's straighforward to make up reasonable values, but listing them // exhaustively would be insane. Come up with a couple of sensible ones.