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.
This commit is contained in:
Lioncash 2019-05-04 19:10:04 -04:00 committed by MerryMage
parent fc9c59d056
commit 1f6878fb46

View file

@ -4,6 +4,7 @@
* General Public License version 2 or any later version.
*/
#include <cstdio>
#include <map>
#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);
}
}