aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/ConstantGen.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/ConstantGen.cc')
-rw-r--r--lib/CodeGen/ConstantGen.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/ConstantGen.cc b/lib/CodeGen/ConstantGen.cc
index 1ac2a28..ca96834 100644
--- a/lib/CodeGen/ConstantGen.cc
+++ b/lib/CodeGen/ConstantGen.cc
@@ -22,8 +22,8 @@ void CodeGen::warnMemberShadow(const std::string &Name, int Line) const {
const TypeInfo *Class = resolveType(CurrentClass);
const RecordPayload *Record = Class ? Class->asRecord() : nullptr;
if (Record && Record->findField(Name)) {
- cps::sourceDiagnostic(Line, "warning: Declaration of %s shadows a field of class %s at line %d\n",
- Name.c_str(), CurrentClass.c_str(), Line);
+ cps::sourceWarning(Line, "Declaration of %s shadows a field of class %s",
+ Name.c_str(), CurrentClass.c_str());
}
}