diff --git a/lib/IR/Instrs.cpp b/lib/IR/Instrs.cpp index d64000ea02..235ea8ab2e 100644 --- a/lib/IR/Instrs.cpp +++ b/lib/IR/Instrs.cpp @@ -67,7 +67,7 @@ void TensorViewInst::verify() const { } void AllocActivationInst::verify() const { - unsigned numDealloc = 0; + [[maybe_unused]] unsigned numDealloc = 0; for (const Use &U : getUsers()) { numDealloc += isa(U.get()); }