OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcad6bd
)
Return value on every path.
author
Zhongxing Xu
<xuzhongxing@gmail.com>
Tue, 2 Feb 2010 07:05:31 +0000
(07:05 +0000)
committer
Zhongxing Xu
<xuzhongxing@gmail.com>
Tue, 2 Feb 2010 07:05:31 +0000
(07:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95075
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/ImmutableIntervalMap.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/ImmutableIntervalMap.h
b/include/llvm/ADT/ImmutableIntervalMap.h
index
1ff2ae2
..
fd85d44
100644
(file)
--- a/
include/llvm/ADT/ImmutableIntervalMap.h
+++ b/
include/llvm/ADT/ImmutableIntervalMap.h
@@
-167,7
+167,6
@@
private:
Interval NewK1(CurrentK.getStart(), K.getStart()-1);
T = Add_internal(std::make_pair(NewK1, OldData), T);
-
Interval NewK2(K.getEnd()+1, CurrentK.getEnd());
return Add_internal(std::make_pair(NewK2, OldData), T);
}
@@
-175,7
+174,8
@@
private:
if (CurrentK.getEnd() > K.getEnd()) {
Interval NewK(K.getEnd()+1, CurrentK.getEnd());
return Add_internal(std::make_pair(NewK, OldData), T);
- }
+ } else
+ return T;
}
}
};
@@
-224,7
+224,6
@@
public:
else
return 0;
}
-
};
private: