summaryrefslogtreecommitdiff
path: root/node/StatementNode.cc
diff options
context:
space:
mode:
authorNagi5Yeq <wu@x-nagi.com>2020-06-01 14:06:48 +0800
committerNagi5Yeq <wu@x-nagi.com>2020-06-01 14:06:48 +0800
commit31d35de96576d2cddc134cdd0646ce4966052ae3 (patch)
tree1df4283f87c57e8e1d9e22959f1c389b9f274d62 /node/StatementNode.cc
parent1e993f800921d2a49ad0c71375512a9209347321 (diff)
disable formatv for LLVM release lacks of RTTI support
Diffstat (limited to 'node/StatementNode.cc')
-rw-r--r--node/StatementNode.cc6
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;
}