CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
64 lines
1.7 KiB
LLVM
64 lines
1.7 KiB
LLVM
; RUN: opt < %s -passes=asan -S | FileCheck %s
|
|
; CHECK: %ex = alloca i32, align 4
|
|
; CHECK: catchpad within %{{.*}} [ptr @"??_R0H@8", i32 0, ptr %ex]
|
|
|
|
; This test ensures that catch parameters are not instrumented on Windows.
|
|
|
|
; This file was generated using the following source
|
|
;
|
|
; ```C++
|
|
; #include <exception>
|
|
; #include <cstdio>
|
|
;
|
|
; int main() {
|
|
; try {
|
|
; throw 1;
|
|
; } catch (const int ex) {
|
|
; printf("%d\n", ex);
|
|
; return -1;
|
|
; }
|
|
; return 0;
|
|
; }
|
|
;
|
|
; ```
|
|
; then running the following sequence of commands
|
|
;
|
|
; ```
|
|
; clang.exe -g0 -O0 -emit-llvm -c main.cpp -o main.bc
|
|
; llvm-extract.exe -func=main main.bc -o main_func.bc
|
|
; llvm-dis.exe main_func.bc -o main_func_dis.ll
|
|
; ```
|
|
; and finally manually trimming the resulting `.ll` file to remove
|
|
; unnecessary metadata, and manually adding the `sanitize_address` annotation;
|
|
; needed for the ASan pass to run.
|
|
|
|
target triple = "x86_64-pc-windows-msvc"
|
|
|
|
@"??_R0H@8" = external global ptr
|
|
|
|
; Function Attrs: sanitize_address
|
|
define i32 @main() sanitize_address personality ptr @__CxxFrameHandler3 {
|
|
entry:
|
|
%ex = alloca i32, align 4
|
|
invoke void @throw()
|
|
to label %unreachable unwind label %catch.dispatch
|
|
|
|
catch.dispatch: ; preds = %entry
|
|
%0 = catchswitch within none [label %catch] unwind to caller
|
|
|
|
catch: ; preds = %catch.dispatch
|
|
%1 = catchpad within %0 [ptr @"??_R0H@8", i32 0, ptr %ex]
|
|
call void @opaque() [ "funclet"(token %1) ]
|
|
catchret from %1 to label %return
|
|
|
|
return: ; preds = %catch
|
|
ret i32 0
|
|
|
|
unreachable: ; preds = %entry
|
|
unreachable
|
|
}
|
|
|
|
declare void @throw() noreturn
|
|
declare void @opaque()
|
|
declare i32 @__CxxFrameHandler3(...)
|