forked from OSchip/llvm-project
parent
39b010f58a
commit
f31cee6e1d
|
@ -4211,7 +4211,7 @@ static int EvaluateBuiltinClassifyType(const CallExpr *E) {
|
||||||
/// character of a string literal.
|
/// character of a string literal.
|
||||||
template<typename LValue>
|
template<typename LValue>
|
||||||
static bool EvaluateBuiltinConstantPForLValue(const LValue &LV) {
|
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();
|
return E && isa<StringLiteral>(E) && LV.getLValueOffset().isZero();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue