summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExprCXX.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-10-06 23:16:35 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-10-06 23:16:35 +0000
commit7b41f721b47167d624fda8530ea974e3063039c6 (patch)
tree35595f4804a4cdb429f65fa4067c38ed6042bfa6 /clang/lib/Sema/SemaExprCXX.cpp
parent997d00dd13e30faf7fad55404c47745e89b4b4e0 (diff)
downloadbcm5719-llvm-7b41f721b47167d624fda8530ea974e3063039c6.tar.gz
bcm5719-llvm-7b41f721b47167d624fda8530ea974e3063039c6.zip
Use getCustomDiagID() instead of specifying the diagnostic in the 'DiagnosticKinds.def' file.
llvm-svn: 57220
Diffstat (limited to 'clang/lib/Sema/SemaExprCXX.cpp')
-rw-r--r--clang/lib/Sema/SemaExprCXX.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp
index c8a21f7d53f..540d92dbae2 100644
--- a/clang/lib/Sema/SemaExprCXX.cpp
+++ b/clang/lib/Sema/SemaExprCXX.cpp
@@ -15,6 +15,7 @@
#include "clang/AST/ExprCXX.h"
#include "clang/AST/ASTContext.h"
#include "clang/Parse/DeclSpec.h"
+#include "clang/Lex/Preprocessor.h"
#include "clang/Basic/Diagnostic.h"
using namespace clang;
@@ -95,8 +96,9 @@ Sema::ActOnCXXTypeConstructExpr(SourceRange TypeRange, TypeTy *TypeRep,
return Diag(TyBeginLoc, diag::err_invalid_incomplete_type_use,
Ty.getAsString(), FullRange);
- // "class constructors are not supported yet"
- return Diag(TyBeginLoc, diag::err_unsupported_class_constructor, FullRange);
+ unsigned DiagID = PP.getDiagnostics().getCustomDiagID(Diagnostic::Error,
+ "class constructors are not supported yet");
+ return Diag(TyBeginLoc, DiagID);
}
// C++ 5.2.3p1:
OpenPOWER on IntegriCloud