[clang] [compiler-rt] [clang][UBSan] Add implicit conversion check for bitfields (PR #75481)
Axel Lundberg via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 14 05:19:03 PST 2024
================
@@ -1097,6 +1112,27 @@ void ScalarExprEmitter::EmitIntegerTruncationCheck(Value *Src, QualType SrcType,
{Src, Dst});
}
+static llvm::Value *EmitIsNegativeTestHelper(Value *V, QualType VType,
+ const char *Name,
+ CGBuilderTy &Builder) {
+ // NOTE: zero value is considered to be non-negative.
----------------
Zonotora wrote:
Leftover comment from previous patches, will update.
https://github.com/llvm/llvm-project/pull/75481
More information about the llvm-commits
mailing list