diff options
author | Weiming Zhao <weimingz@codeaurora.org> | 2016-07-11 18:27:52 +0000 |
---|---|---|
committer | Weiming Zhao <weimingz@codeaurora.org> | 2016-07-11 18:27:52 +0000 |
commit | 7614e178cb9c4ef66c39dc953f9804b0a6a64d4c (patch) | |
tree | 93c20f172b025afe53a966650cb9b2d9327e1aa7 | |
parent | 63c4ce8e1b79a18407793a15d5670208dd403bea (diff) | |
download | bcm5719-llvm-7614e178cb9c4ef66c39dc953f9804b0a6a64d4c.tar.gz bcm5719-llvm-7614e178cb9c4ef66c39dc953f9804b0a6a64d4c.zip |
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
llvm-svn: 275085
-rw-r--r-- | polly/lib/Analysis/ScopBuilder.cpp | 2 | ||||
-rw-r--r-- | polly/lib/Analysis/ScopDetection.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/polly/lib/Analysis/ScopBuilder.cpp b/polly/lib/Analysis/ScopBuilder.cpp index 6a8dbe4511c..12904193ee3 100644 --- a/polly/lib/Analysis/ScopBuilder.cpp +++ b/polly/lib/Analysis/ScopBuilder.cpp @@ -311,6 +311,8 @@ bool ScopBuilder::buildAccessCallInst(MemAccInst Inst, Loop *L) { 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; diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp index 7d2dcbee52a..3770ae06c4c 100644 --- a/polly/lib/Analysis/ScopDetection.cpp +++ b/polly/lib/Analysis/ScopDetection.cpp @@ -536,6 +536,8 @@ bool ScopDetection::isValidCallInst(CallInst &CI, Context.AST.add(&CI); return true; + case FMRB_DoesNotReadMemory: + return false; } } |