[flang-commits] [flang] 10388c7 - [flang] Fixed -Werror build after #65919. (#66679)
via flang-commits
flang-commits at lists.llvm.org
Mon Sep 18 11:10:12 PDT 2023
Author: Slava Zakharin
Date: 2023-09-18T11:10:07-07:00
New Revision: 10388c74e2015a4d4ca5246b77f97aa3c27a3ac3
URL: https://github.com/llvm/llvm-project/commit/10388c74e2015a4d4ca5246b77f97aa3c27a3ac3
DIFF: https://github.com/llvm/llvm-project/commit/10388c74e2015a4d4ca5246b77f97aa3c27a3ac3.diff
LOG: [flang] Fixed -Werror build after #65919. (#66679)
Added:
Modified:
flang/lib/Optimizer/Analysis/AliasAnalysis.cpp
Removed:
################################################################################
diff --git a/flang/lib/Optimizer/Analysis/AliasAnalysis.cpp b/flang/lib/Optimizer/Analysis/AliasAnalysis.cpp
index 645b5b8bb51dbe9..767ef2e8fa7dc08 100644
--- a/flang/lib/Optimizer/Analysis/AliasAnalysis.cpp
+++ b/flang/lib/Optimizer/Analysis/AliasAnalysis.cpp
@@ -138,12 +138,12 @@ AliasResult AliasAnalysis::alias(Value lhs, Value rhs) {
if (src1->kind == SourceKind::Allocate)
return AliasResult::NoAlias;
- assert((src1->kind == SourceKind::Global &&
- (src2->kind == SourceKind::Argument ||
- src2->kind == SourceKind::HostAssoc)) ||
- (src1->kind == SourceKind::Argument &&
- src2->kind == SourceKind::HostAssoc) &&
- "unexpected memory source kinds");
+ assert(((src1->kind == SourceKind::Global &&
+ (src2->kind == SourceKind::Argument ||
+ src2->kind == SourceKind::HostAssoc)) ||
+ (src1->kind == SourceKind::Argument &&
+ src2->kind == SourceKind::HostAssoc)) &&
+ "unexpected memory source kinds");
if (src1->kind == SourceKind::Argument &&
src2->kind == SourceKind::HostAssoc) {
More information about the flang-commits
mailing list