diff options
author | Darren Kulp <darren@kulp.ch> | 2020-06-19 20:12:04 -0700 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2022-02-18 19:33:25 +0100 |
commit | fdb762a9d44229a74f5d428b167b39f02bd10432 (patch) | |
tree | 3dbd08395a2f59a066886049d99ca5a74ce0e55b | |
parent | 5f5f6fa1933540c0a447973cd6e5239ed9159201 (diff) |
clang: Stop accommodating libclang 3.9
-rw-r--r-- | src/clang.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/clang.rs b/src/clang.rs index 074d459b..528c8a91 100644 --- a/src/clang.rs +++ b/src/clang.rs @@ -2014,12 +2014,6 @@ impl EvalResult { return None; } - if !clang_EvalResult_isUnsignedInt::is_loaded() { - // FIXME(emilio): There's no way to detect underflow here, and clang - // will just happily give us a value. - return Some(unsafe { clang_EvalResult_getAsInt(self.x) } as i64); - } - if unsafe { clang_EvalResult_isUnsignedInt(self.x) } != 0 { let value = unsafe { clang_EvalResult_getAsUnsigned(self.x) }; if value > i64::max_value() as c_ulonglong { |