From 1f6878fb466be5361af2e1cb5e721fa46401c67e Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 4 May 2019 19:10:04 -0400 Subject: [PATCH] ir_opt/verification_pass: Add include for std::puts Ensures that the header dependency is always satisfied directly, and not through other project headers. While we're at it, we can qualify the call with the std:: namespace. --- src/ir_opt/verification_pass.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ir_opt/verification_pass.cpp b/src/ir_opt/verification_pass.cpp index 59f474b3..63c59dc6 100644 --- a/src/ir_opt/verification_pass.cpp +++ b/src/ir_opt/verification_pass.cpp @@ -4,6 +4,7 @@ * General Public License version 2 or any later version. */ +#include #include #include "common/assert.h" @@ -22,7 +23,7 @@ void VerificationPass(const IR::Block& block) { const IR::Type t1 = inst.GetArg(i).GetType(); const IR::Type t2 = IR::GetArgTypeOf(inst.GetOpcode(), i); if (!IR::AreTypesCompatible(t1, t2)) { - puts(IR::DumpBlock(block).c_str()); + std::puts(IR::DumpBlock(block).c_str()); ASSERT(false); } }