Commit f386bf5c by Siju Samuel Committed by Tianqi Chen

Update inject_virtual_thread.cc (#806)

This compilation warning is fixed.
src/pass/inject_virtual_thread.cc:43:19: warning: ‘rw_mask’ may be used uninitialized in this function [-Wmaybe-uninitialized]
       if (rw_mask & 2) {
           ~~~~~~~~^~~
parent dfb84db5
......@@ -32,7 +32,7 @@ class ExprTouched final : public IRVisitor {
}
void Visit_(const Call *op) final {
if (op->is_intrinsic(intrinsic::tvm_access_ptr)) {
int rw_mask;
int rw_mask = 0;
CHECK(arith::GetConstInt(op->args[4], &rw_mask));
const Variable* buffer_var = op->args[1].as<Variable>();
CHECK(buffer_var);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment