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:
159c35b
)
no need to negate the APInt for 0.
author
Chris Lattner
<sabre@nondot.org>
Tue, 6 Jan 2009 00:06:25 +0000
(
00:06
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 6 Jan 2009 00:06:25 +0000
(
00:06
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61777
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Support/PatternMatch.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/PatternMatch.h
b/include/llvm/Support/PatternMatch.h
index
98964eb
..
1cc5995
100644
(file)
--- a/
include/llvm/Support/PatternMatch.h
+++ b/
include/llvm/Support/PatternMatch.h
@@
-57,7
+57,7
@@
struct constantint_ty {
bool match(ITy *V) {
if (const ConstantInt *CI = dyn_cast<ConstantInt>(V)) {
const APInt &CIV = CI->getValue();
- if (Val > 0)
+ if (Val >
=
0)
return CIV == Val;
// If Val is negative, and CI is shorter than it, truncate to the right
// number of bits. If it is larger, then we have to sign extend. Just