Skip to content

Commit 14a4e42

Browse files
committed
refine comment
1 parent fe59e8b commit 14a4e42

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/include/llvm/Analysis/ConstantFolding.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,9 @@ struct PreservedCastFlags {
233233
bool NSW = false;
234234
};
235235

236-
/// Try to cast C to InvC losslessly, satisfying CastOp(InvC) == C.
237-
/// Will try best to preserve the flags.
236+
/// Try to cast C to InvC losslessly, satisfying CastOp(InvC) equals C, or
237+
/// CastOp(InvC) is a refined value of undefined C. Will try best to
238+
/// preserve the flags.
238239
LLVM_ABI Constant *getLosslessInvCast(Constant *C, Type *InvCastTo,
239240
unsigned CastOp, const DataLayout &DL,
240241
PreservedCastFlags *Flags = nullptr);

0 commit comments

Comments
 (0)