efriedma added inline comments.

================
Comment at: clang/lib/CodeGen/PatternInit.cpp:60
     unsigned BitWidth = llvm::APFloat::semanticsSizeInBits(
-        (Ty->isVectorTy() ? Ty->getVectorElementType() : Ty)
+        (Ty->isVectorTy() ? cast<llvm::VectorType>(Ty)->getElementType() : Ty)
             ->getFltSemantics());
----------------
It would make sense to fix this to use getScalarType().


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D77257



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to