Skip to content

Commit

Permalink
[ConstantFolding] Drop misleading comment (NFC)
Browse files Browse the repository at this point in the history
As pointed out by Philip, this part of the comment is misleading,
as it describes undef rather than poison behavior. Just mentioning
poison should be sufficient.
  • Loading branch information
nikic committed Oct 22, 2021
1 parent 6cf6917 commit 4d692da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions llvm/include/llvm/Analysis/ConstantFolding.h
Expand Up @@ -129,8 +129,7 @@ Constant *ConstantFoldShuffleVectorInstruction(Constant *V1, Constant *V2,
ArrayRef<int> Mask);

/// Extract value of C at the given Offset reinterpreted as Ty. If bits past
/// the end of C are accessed, they are assumed to be poison and may take any
/// value.
/// the end of C are accessed, they are assumed to be poison.
Constant *ConstantFoldLoadFromConst(Constant *C, Type *Ty, const APInt &Offset,
const DataLayout &DL);

Expand Down

0 comments on commit 4d692da

Please sign in to comment.