efriedma added inline comments.

================
Comment at: clang/lib/CodeGen/CGBuiltin.cpp:9068
+        VecOps.push_back(llvm::ConstantInt::get(
+            EltTy, cast<ConstantInt>(Ops[I])->getZExtValue()));
+      else
----------------
Constant doesn't imply ConstantInt.  (For example, it could be the address of a 
global variable.)

Not sure you need to explicitly check for constants here, anyway; 
Builder.CreateZExt does constant folding.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D103082

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

Reply via email to