File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -915,8 +915,7 @@ bool BitcodeReader::ParseConstants() {
915
915
dyn_cast_or_null<VectorType>(getTypeByID (Record[0 ]));
916
916
if (OpTy == 0 ) return Error (" Invalid CE_EXTRACTELT record" );
917
917
Constant *Op0 = ValueList.getConstantFwdRef (Record[1 ], OpTy);
918
- Constant *Op1 = ValueList.getConstantFwdRef (Record[2 ],
919
- OpTy->getElementType ());
918
+ Constant *Op1 = ValueList.getConstantFwdRef (Record[2 ], Type::Int32Ty);
920
919
V = ConstantExpr::getExtractElement (Op0, Op1);
921
920
break ;
922
921
}
Original file line number Diff line number Diff line change
1
+ ; RUN: llvm-as < %s | opt -constprop | llvm-dis
2
+ ; PR3465
3
+
4
+ define double @test () {
5
+ %tmp24 = extractelement <2 x double > bitcast (<1 x i128 > < i128 85070591730234615870450834276742070272 > to <2 x double >), i32 0
6
+ ret double %tmp24
7
+ }
8
+
You can’t perform that action at this time.
0 commit comments