Skip to content

Commit 6c2e729

Browse files
committed
Use different syntax in GlobalVariable::get_constant
1 parent c6e1fb4 commit 6c2e729

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/value.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,7 @@ impl GlobalVariable {
192192
/// Returns true if this global is a constant.
193193
pub fn get_constant(&self) -> bool {
194194
unsafe {
195-
// FIXME: There should be a constant for True/False
196-
core::LLVMIsGlobalConstant(self.into()) == 1
195+
core::LLVMIsGlobalConstant(self.into()) != 0
197196
}
198197
}
199198
}

0 commit comments

Comments
 (0)