diff options
| author | Vadim Chugunov <vadimcn@gmail.com> | 2014-08-05 19:07:38 -0700 |
|---|---|---|
| committer | Vadim Chugunov <vadimcn@gmail.com> | 2014-08-05 19:14:15 -0700 |
| commit | cd2003ffd8dd976342f9e8fc1429ae93d6780e81 (patch) | |
| tree | 59f45119a76c6ede2cf3b3c104fc34ba948eae84 /src/rt | |
| parent | cb55279f2378c8f3e8528c8c4c8a0f67d6955cb1 (diff) | |
| download | rust-cd2003ffd8dd976342f9e8fc1429ae93d6780e81.tar.gz rust-cd2003ffd8dd976342f9e8fc1429ae93d6780e81.zip | |
Added clarification regarding rust_try_inner.
Diffstat (limited to 'src/rt')
| -rw-r--r-- | src/rt/rust_try.ll | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rt/rust_try.ll b/src/rt/rust_try.ll index 08bf5e3dfac..33d2d31a2e0 100644 --- a/src/rt/rust_try.ll +++ b/src/rt/rust_try.ll @@ -11,6 +11,7 @@ ; Rust's try-catch ; When f(...) returns normally, the return value is null. ; When f(...) throws, the return value is a pointer to the caught exception object. + ; See also: librustrt/unwind.rs define i8* @rust_try(void (i8*,i8*)* %f, i8* %fptr, i8* %env) { @@ -25,7 +26,7 @@ normal: catch: landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @rust_eh_personality_catch to i8*) catch i8* null - ; execution will never reach here because rust_try_inner's landing pad does not resume unwinds + ; rust_try_inner's landing pad does not resume unwinds, so execution will never reach here ret i8* null } |
