diff options
author | Vitaly Buka <vitalybuka@google.com> | 2024-04-03 10:27:09 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-03 10:27:09 -0700 |
commit | 5822ca5a013256bbca33fbbae56f49caa2e37fe3 (patch) | |
tree | 70264248326cd40964719bb9b76236e71df0ec4f /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 315c88c5fbdb2b27cebf23c87fb502f7a567d84b (diff) | |
download | llvm-5822ca5a013256bbca33fbbae56f49caa2e37fe3.zip llvm-5822ca5a013256bbca33fbbae56f49caa2e37fe3.tar.gz llvm-5822ca5a013256bbca33fbbae56f49caa2e37fe3.tar.bz2 |
Revert "[clang][UBSan] Add implicit conversion check for bitfields" (#87518)
Reverts llvm/llvm-project#75481
Breaks multiple bots, see #75481
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 99a7f51..e2a7e28 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -2786,21 +2786,6 @@ public: /// expression and compare the result against zero, returning an Int1Ty value. llvm::Value *EvaluateExprAsBool(const Expr *E); - /// Retrieve the implicit cast expression of the rhs in a binary operator - /// expression by passing pointers to Value and QualType - /// This is used for implicit bitfield conversion checks, which - /// must compare with the value before potential truncation. - llvm::Value *EmitWithOriginalRHSBitfieldAssignment(const BinaryOperator *E, - llvm::Value *Previous, - QualType *SrcType); - - /// Emit a check that an [implicit] conversion of a bitfield. It is not UB, - /// so we use the value after conversion. - void EmitBitfieldConversionCheck(llvm::Value *Src, QualType SrcType, - llvm::Value *Dst, QualType DstType, - const CGBitFieldInfo &Info, - SourceLocation Loc); - /// EmitIgnoredExpr - Emit an expression in a context which ignores the result. void EmitIgnoredExpr(const Expr *E); |