Skip to content

Commit 5fa985f

Browse files
committed
clang: Stop accommodating libclang 3.9
1 parent c0ba708 commit 5fa985f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/clang.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2014,12 +2014,6 @@ impl EvalResult {
20142014
return None;
20152015
}
20162016

2017-
if !clang_EvalResult_isUnsignedInt::is_loaded() {
2018-
// FIXME(emilio): There's no way to detect underflow here, and clang
2019-
// will just happily give us a value.
2020-
return Some(unsafe { clang_EvalResult_getAsInt(self.x) } as i64);
2021-
}
2022-
20232017
if unsafe { clang_EvalResult_isUnsignedInt(self.x) } != 0 {
20242018
let value = unsafe { clang_EvalResult_getAsUnsigned(self.x) };
20252019
if value > i64::max_value() as c_ulonglong {

0 commit comments

Comments
 (0)