aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/DependenceAnalysis.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2015-03-05 01:25:06 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2015-03-05 01:25:06 +0000
commite110d641a0147a114df1ee8b897577ae29029541 (patch)
treee56f9cb16cdc26d9732bf20bbc094dbb7f149abb /llvm/lib/Analysis/DependenceAnalysis.cpp
parent83ce8779d56debc38ce1943444b7f62f004c3e57 (diff)
downloadllvm-e110d641a0147a114df1ee8b897577ae29029541.zip
llvm-e110d641a0147a114df1ee8b897577ae29029541.tar.gz
llvm-e110d641a0147a114df1ee8b897577ae29029541.tar.bz2
Revert r231104, "unique_ptrify FullDependenceAnalysis::DV", to appease msc18 C2280.
llvm-svn: 231334
Diffstat (limited to 'llvm/lib/Analysis/DependenceAnalysis.cpp')
-rw-r--r--llvm/lib/Analysis/DependenceAnalysis.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/llvm/lib/Analysis/DependenceAnalysis.cpp b/llvm/lib/Analysis/DependenceAnalysis.cpp
index d5d2fb2..393ee5c 100644
--- a/llvm/lib/Analysis/DependenceAnalysis.cpp
+++ b/llvm/lib/Analysis/DependenceAnalysis.cpp
@@ -226,12 +226,16 @@ bool Dependence::isScalar(unsigned level) const {
//===----------------------------------------------------------------------===//
// FullDependence methods
-FullDependence::FullDependence(Instruction *Source, Instruction *Destination,
+FullDependence::FullDependence(Instruction *Source,
+ Instruction *Destination,
bool PossiblyLoopIndependent,
- unsigned CommonLevels)
- : Dependence(Source, Destination), Levels(CommonLevels),
- LoopIndependent(PossiblyLoopIndependent), Consistent(true),
- DV(CommonLevels ? new DVEntry[CommonLevels] : nullptr) {}
+ unsigned CommonLevels) :
+ Dependence(Source, Destination),
+ Levels(CommonLevels),
+ LoopIndependent(PossiblyLoopIndependent) {
+ Consistent = true;
+ DV = CommonLevels ? new DVEntry[CommonLevels] : nullptr;
+}
// The rest are simple getters that hide the implementation.