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
parent bd0ed7ee79
commit f8814e7e05
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7

View File

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