[clang] 018ad3b - [AST] Fix typo on NoInitExpr dependence computation
Sam McCall via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 27 11:40:36 PDT 2020
Author: Sam McCall
Date: 2020-03-27T19:40:25+01:00
New Revision: 018ad3b05ec7c1c217ef203042c652a1535d3588
URL: https://github.com/llvm/llvm-project/commit/018ad3b05ec7c1c217ef203042c652a1535d3588
DIFF: https://github.com/llvm/llvm-project/commit/018ad3b05ec7c1c217ef203042c652a1535d3588.diff
LOG: [AST] Fix typo on NoInitExpr dependence computation
Added:
Modified:
clang/lib/AST/ComputeDependence.cpp
Removed:
################################################################################
diff --git a/clang/lib/AST/ComputeDependence.cpp b/clang/lib/AST/ComputeDependence.cpp
index a6ccf9aad321..2db3a6e94615 100644
--- a/clang/lib/AST/ComputeDependence.cpp
+++ b/clang/lib/AST/ComputeDependence.cpp
@@ -172,7 +172,7 @@ ExprDependence clang::computeDependence(VAArgExpr *E) {
ExprDependence clang::computeDependence(NoInitExpr *E) {
return toExprDependence(E->getType()->getDependence()) &
- (ExprDependence::Instantiation & ExprDependence::Error);
+ (ExprDependence::Instantiation | ExprDependence::Error);
}
ExprDependence clang::computeDependence(ArrayInitLoopExpr *E) {
More information about the cfe-commits
mailing list