]> granicus.if.org Git - clang/commitdiff
Add a missing 'template' keyword.
authorDouglas Gregor <dgregor@apple.com>
Sun, 11 Mar 2012 02:23:56 +0000 (02:23 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sun, 11 Mar 2012 02:23:56 +0000 (02:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152526 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ExprConstant.cpp

index 2a2b6fb3736396a348721ac128a5868e1c200987..2d921467f773f3733c6d7170e7ef9a84456bf9ab 100644 (file)
@@ -4211,7 +4211,7 @@ static int EvaluateBuiltinClassifyType(const CallExpr *E) {
 /// character of a string literal.
 template<typename LValue>
 static bool EvaluateBuiltinConstantPForLValue(const LValue &LV) {
-  const Expr *E = LV.getLValueBase().dyn_cast<const Expr*>();
+  const Expr *E = LV.getLValueBase().template dyn_cast<const Expr*>();
   return E && isa<StringLiteral>(E) && LV.getLValueOffset().isZero();
 }