diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-05-04 16:48:41 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-05-04 16:48:41 +0000 |
commit | f502d8ec9b43b259db9e37e9622279df46070fed (patch) | |
tree | 0567557f56ac09e8b77f4cd2885dd41109f1c9dd /lib/Sema/SemaDecl.cpp | |
parent | d10099e5c8238fa0327f03921cf2e3c8975c881e (diff) |
Switch RequireLiteralType() off of PartialDiagnostic.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156178 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r-- | lib/Sema/SemaDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 1480b3ea57..d1cc73c3f8 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -4452,7 +4452,7 @@ bool Sema::CheckVariableDeclaration(VarDecl *NewVD, if (NewVD->isConstexpr() && !T->isDependentType() && RequireLiteralType(NewVD->getLocation(), T, - PDiag(diag::err_constexpr_var_non_literal))) { + diag::err_constexpr_var_non_literal)) { NewVD->setInvalidDecl(); return false; } |