File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -288,8 +288,7 @@ Value* get_operand(llvm::Value *v,
288288
289289 // automatic splat of constant values
290290 if (auto vty = dyn_cast<llvm::FixedVectorType>(v->getType ());
291- vty && !isa<llvm::ConstantAggregate, llvm::ConstantAggregateZero,
292- llvm::ConstantDataSequential>(v)) {
291+ vty && isa<llvm::ConstantInt, llvm::ConstantFP>(v)) {
293292 llvm::Value *llvm_splat = nullptr ;
294293 if (auto cnst = dyn_cast<llvm::ConstantInt>(v)) {
295294 llvm_splat
@@ -298,7 +297,7 @@ Value* get_operand(llvm::Value *v,
298297 llvm_splat
299298 = llvm::ConstantFP::get (vty->getElementType (), cnst->getValue ());
300299 } else
301- return nullptr ;
300+ UNREACHABLE () ;
302301
303302 auto splat = get_operand (llvm_splat, constexpr_conv, copy_inserter,
304303 register_fn_decl);
You can’t perform that action at this time.
0 commit comments