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:
parent
fc9c59d056
commit
1f6878fb46
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
||||||
* General Public License version 2 or any later version.
|
* General Public License version 2 or any later version.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <cstdio>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
#include "common/assert.h"
|
#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 t1 = inst.GetArg(i).GetType();
|
||||||
const IR::Type t2 = IR::GetArgTypeOf(inst.GetOpcode(), i);
|
const IR::Type t2 = IR::GetArgTypeOf(inst.GetOpcode(), i);
|
||||||
if (!IR::AreTypesCompatible(t1, t2)) {
|
if (!IR::AreTypesCompatible(t1, t2)) {
|
||||||
puts(IR::DumpBlock(block).c_str());
|
std::puts(IR::DumpBlock(block).c_str());
|
||||||
ASSERT(false);
|
ASSERT(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue