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:
47fbe9e
)
Make isNegative() a const function since it doesn't modify the APInt.
author
Reid Spencer
<rspencer@reidspencer.com>
Mon, 26 Feb 2007 07:45:40 +0000
(07:45 +0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Mon, 26 Feb 2007 07:45:40 +0000
(07:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34630
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/APInt.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/APInt.h
b/include/llvm/ADT/APInt.h
index
489675d
..
a22ed82
100644
(file)
--- a/
include/llvm/ADT/APInt.h
+++ b/
include/llvm/ADT/APInt.h
@@
-355,7
+355,7
@@
public:
/// This just tests the high bit of this APInt to determine if it is negative.
/// @returns true if this APInt is negative, false otherwise
/// @brief Determine sign of this APInt.
- bool isNegative() {
+ bool isNegative()
const
{
return (*this)[BitWidth - 1];
}