diff options
Diffstat (limited to 'node/StatementNode.cc')
| -rw-r--r-- | node/StatementNode.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/node/StatementNode.cc b/node/StatementNode.cc index 40c07af..07babe2 100644 --- a/node/StatementNode.cc +++ b/node/StatementNode.cc @@ -36,7 +36,7 @@ Value AssignStatementNode::CodeGen() { std::dynamic_pointer_cast<PointerType>(lhs_->GetType()); if (LeftType == nullptr) { Log(LogLevel::PCC_ERROR, - "type {0} is not a valid pointer type, can't store anything into " + "type %s is not a valid pointer type, can't store anything into " "this lvalue", lhs_->GetType()->GetCommonName()); return nullptr; @@ -212,7 +212,7 @@ Value ForStatementNode::CodeGen() { std::dynamic_pointer_cast<PointerType>(variable_->GetType()); if (LoopPointer == nullptr) { Log(LogLevel::PCC_ERROR, - "type {0} is not a valid pointer type, can't store anything into " + "type %s is not a valid pointer type, can't store anything into " "this lvalue", variable_->GetType()->GetCommonName()); return nullptr; @@ -222,7 +222,7 @@ Value ForStatementNode::CodeGen() { LoopPointer->GetElementType()); if (LoopType == nullptr) { Log(LogLevel::PCC_ERROR, - "loop variable should have a integer-like type, not {0}", + "loop variable should have a integer-like type, not %s", LoopPointer->GetElementType()->GetCommonName()); return nullptr; } |
