diff options
Diffstat (limited to 'CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | CodeGen/CodeGenFunction.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/CodeGen/CodeGenFunction.cpp b/CodeGen/CodeGenFunction.cpp index db5072be0b..0da5fcdaaa 100644 --- a/CodeGen/CodeGenFunction.cpp +++ b/CodeGen/CodeGenFunction.cpp @@ -147,10 +147,11 @@ const CGRecordLayout *CodeGenFunction::getCGRecordLayout(CodeGenTypes &CGT, /// WarnUnsupported - Print out a warning that codegen doesn't support the /// specified stmt yet. -void CodeGenFunction::WarnUnsupported(const Stmt *S) { +void CodeGenFunction::WarnUnsupported(const Stmt *S, const char *Type) { unsigned DiagID = CGM.getDiags().getCustomDiagID(Diagnostic::Warning, - "cannot codegen this yet"); + "cannot codegen this %0 yet"); SourceRange Range = S->getSourceRange(); - CGM.getDiags().Report(S->getLocStart(), DiagID, 0, 0, &Range, 1); + std::string Msg = Type; + CGM.getDiags().Report(S->getLocStart(), DiagID, &Msg, 1, &Range, 1); } |