[polly] r275085 - Fix a build warning of unhandled enum in switch
Weiming Zhao via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 11 11:27:52 PDT 2016
Author: weimingz
Date: Mon Jul 11 13:27:52 2016
New Revision: 275085
URL: http://llvm.org/viewvc/llvm-project?rev=275085&view=rev
Log:
Fix a build warning of unhandled enum in switch
Summary: LLVM adds a new value FMRB_DoesNotReadMemory in the enumeration.
Reviewers: andrew.w.kaylor, chrisj, zinob, grosser, jdoerfert
Subscribers: Meinersbur, pollydev
Differential Revision: http://reviews.llvm.org/D22109
Modified:
polly/trunk/lib/Analysis/ScopBuilder.cpp
polly/trunk/lib/Analysis/ScopDetection.cpp
Modified: polly/trunk/lib/Analysis/ScopBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopBuilder.cpp?rev=275085&r1=275084&r2=275085&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopBuilder.cpp (original)
+++ polly/trunk/lib/Analysis/ScopBuilder.cpp Mon Jul 11 13:27:52 2016
@@ -311,6 +311,8 @@ bool ScopBuilder::buildAccessCallInst(Me
llvm_unreachable("Unknown mod ref behaviour cannot be represented.");
case llvm::FMRB_DoesNotAccessMemory:
return true;
+ case llvm::FMRB_DoesNotReadMemory:
+ return false;
case llvm::FMRB_OnlyReadsMemory:
GlobalReads.push_back(CI);
return true;
Modified: polly/trunk/lib/Analysis/ScopDetection.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopDetection.cpp?rev=275085&r1=275084&r2=275085&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopDetection.cpp (original)
+++ polly/trunk/lib/Analysis/ScopDetection.cpp Mon Jul 11 13:27:52 2016
@@ -536,6 +536,8 @@ bool ScopDetection::isValidCallInst(Call
Context.AST.add(&CI);
return true;
+ case FMRB_DoesNotReadMemory:
+ return false;
}
}
More information about the llvm-commits
mailing list