aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/AST/ExprConstant.cpp
diff options
context:
space:
mode:
authorTimm Bäder <tbaeder@redhat.com>2024-09-17 05:58:51 +0200
committerTimm Bäder <tbaeder@redhat.com>2024-09-17 05:58:54 +0200
commit95a0b4f729310d95d89f01f4d92ab7d2bf09941c (patch)
tree3adb139ba5af42070841150b1ab1557bae28f0ee /clang/lib/AST/ExprConstant.cpp
parent884221eddb9d395830704fac79fd04008e02e368 (diff)
downloadllvm-95a0b4f729310d95d89f01f4d92ab7d2bf09941c.zip
llvm-95a0b4f729310d95d89f01f4d92ab7d2bf09941c.tar.gz
llvm-95a0b4f729310d95d89f01f4d92ab7d2bf09941c.tar.bz2
Revert "[clang][ExprConst] Allow comparisons with string literals (#106733)"
This reverts commit 5d1d2f08c4a92580e7f6b3b6b77b2b6f6184e126. See the discussion in https://github.com/llvm/llvm-project/pull/106733 and https://github.com/llvm/llvm-project/issues/58754
Diffstat (limited to 'clang/lib/AST/ExprConstant.cpp')
-rw-r--r--clang/lib/AST/ExprConstant.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp
index 4af7752..6387e37 100644
--- a/clang/lib/AST/ExprConstant.cpp
+++ b/clang/lib/AST/ExprConstant.cpp
@@ -2146,7 +2146,7 @@ static bool IsLiteralLValue(const LValue &Value) {
if (Value.getLValueCallIndex())
return false;
const Expr *E = Value.Base.dyn_cast<const Expr*>();
- return E && !isa<MaterializeTemporaryExpr, StringLiteral>(E);
+ return E && !isa<MaterializeTemporaryExpr>(E);
}
static bool IsWeakLValue(const LValue &Value) {