Skip to content

Commit 55ed5a2

Browse files
committed
Stop accommodating libclang 3.9
1 parent 412bef9 commit 55ed5a2

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
@@ -2000,12 +2000,6 @@ impl EvalResult {
20002000
return None;
20012001
}
20022002

2003-
if !clang_EvalResult_isUnsignedInt::is_loaded() {
2004-
// FIXME(emilio): There's no way to detect underflow here, and clang
2005-
// will just happily give us a value.
2006-
return Some(unsafe { clang_EvalResult_getAsInt(self.x) } as i64);
2007-
}
2008-
20092003
if unsafe { clang_EvalResult_isUnsignedInt(self.x) } != 0 {
20102004
let value = unsafe { clang_EvalResult_getAsUnsigned(self.x) };
20112005
if value > i64::max_value() as c_ulonglong {

0 commit comments

Comments
 (0)