MCPcopy Create free account
hub / github.com/Rust-GPU/rust-gpu / const_poison

Method const_poison

crates/rustc_codegen_spirv/src/codegen_cx/constant.rs:130–133  ·  view source on GitHub ↗
(&self, ty: Self::Type)

Source from the content-addressed store, hash-verified

128 self.undef(ty)
129 }
130 fn const_poison(&self, ty: Self::Type) -> Self::Value {
131 // No distinction between undef and poison.
132 self.const_undef(ty)
133 }
134 fn const_int(&self, t: Self::Type, i: i64) -> Self::Value {
135 self.constant_int(t, i as u64)
136 }

Callers

nothing calls this directly

Calls 1

const_undefMethod · 0.80

Tested by

no test coverage detected