Skip to content

Commit

Permalink
Hopefully fix UB
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Simulacrum committed Apr 14, 2024
1 parent 6081b49 commit d989121
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1530,7 +1530,7 @@ extern "C" LLVMValueRef LLVMRustBuildCall(LLVMBuilderRef B, LLVMTypeRef Ty, LLVM
FunctionType *FTy = unwrap<FunctionType>(Ty);
return wrap(unwrap(B)->CreateCall(
FTy, Callee, ArrayRef<Value*>(unwrap(Args), NumArgs),
ArrayRef<OperandBundleDef>(*OpBundles, NumOpBundles)));
NumOpBundles == 0 ? ArrayRef<OperandBundleDef>() : ArrayRef<OperandBundleDef>(*OpBundles, NumOpBundles)));

Check failure on line 1533 in compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp

View workflow job for this annotation

GitHub Actions / PR - mingw-check-tidy

line longer than 100 chars
}

extern "C" LLVMValueRef LLVMRustGetInstrProfIncrementIntrinsic(LLVMModuleRef M) {
Expand Down

0 comments on commit d989121

Please sign in to comment.