Skip to content

Commit 0bfa6e1

Browse files
remove ConstantFP from assert given we know SrcIVTy is an integer
1 parent 2f5cc5b commit 0bfa6e1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Analysis/ConstantFolding.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,7 @@ Constant *FoldBitCast(Constant *C, Type *DestTy, const DataLayout &DL) {
201201
// Ask IR to do the conversion now that #elts line up.
202202
C = ConstantExpr::getBitCast(C, SrcIVTy);
203203
assert((isa<ConstantVector>(C) || // FIXME: Remove ConstantVector.
204-
isa<ConstantDataVector>(C) || isa<ConstantInt>(C) ||
205-
isa<ConstantFP>(C)) &&
204+
isa<ConstantDataVector>(C) || isa<ConstantInt>(C)) &&
206205
"Constant folding cannot fail for plain fp->int bitcast!");
207206
}
208207

0 commit comments

Comments
 (0)