We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73acf8d commit ca4ebaeCopy full SHA for ca4ebae
clang/lib/CodeGen/CGExpr.cpp
@@ -3842,9 +3842,10 @@ void CodeGenFunction::EmitTrapCheck(llvm::Value *Checked,
3842
3843
llvm::CallInst *TrapCall = Builder.CreateCall(
3844
CGM.getIntrinsic(llvm::Intrinsic::ubsantrap),
3845
- llvm::ConstantInt::get(CGM.Int8Ty, ClSanitizeDebugDeoptimization
3846
- ? TrapBB->getParent()->size()
3847
- : CheckHandlerID));
+ llvm::ConstantInt::get(CGM.Int8Ty,
+ ClSanitizeDebugDeoptimization
+ ? TrapBB->getParent()->size()
3848
+ : static_cast<uint64_t>(CheckHandlerID)));
3849
3850
if (!CGM.getCodeGenOpts().TrapFuncName.empty()) {
3851
auto A = llvm::Attribute::get(getLLVMContext(), "trap-func-name",
0 commit comments