[PATCH] D77276: Clean up usages of asserting vector getters in Type

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 9 21:13:08 PDT 2020


efriedma added inline comments.


================
Comment at: llvm/lib/IR/ConstantFold.cpp:750
   if (ConstantVector *CondV = dyn_cast<ConstantVector>(Cond)) {
+    auto *V1VTy = cast<VectorType>(CondV->getType());
     SmallVector<Constant*, 16> Result;
----------------
Unnecessary cast<>


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D77276/new/

https://reviews.llvm.org/D77276





More information about the llvm-commits mailing list