diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2005-03-19 23:39:50 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2005-03-19 23:39:50 +0000 |
commit | 37884fc79e9a55e92ec26574c710c8d3609aa839 (patch) | |
tree | 0f29b3d3a6ef5bc0cf30482425b87a561eb64395 /include/llvm/ADT | |
parent | 2413a68d2db9f4abc813775ff5c43e25b73dd8cc (diff) | |
download | external_llvm-37884fc79e9a55e92ec26574c710c8d3609aa839.zip external_llvm-37884fc79e9a55e92ec26574c710c8d3609aa839.tar.gz external_llvm-37884fc79e9a55e92ec26574c710c8d3609aa839.tar.bz2 |
Constant-propagate the value of `isL' variable and eliminate it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20698 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT')
-rw-r--r-- | include/llvm/ADT/EquivalenceClasses.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/ADT/EquivalenceClasses.h b/include/llvm/ADT/EquivalenceClasses.h index 2ca78e4..0c62cb5 100644 --- a/include/llvm/ADT/EquivalenceClasses.h +++ b/include/llvm/ADT/EquivalenceClasses.h @@ -84,8 +84,7 @@ class EquivalenceClasses { void setNext(const ECValue *NewNext) const { assert(getNext() == 0 && "Already has a next pointer!"); - bool isL = isLeader(); - Next = (const ECValue*)((intptr_t)NewNext | (intptr_t)isL); + Next = (const ECValue*)((intptr_t)NewNext | (intptr_t)isLeader()); } public: ECValue(const ECValue &RHS) : Leader(this), Next((ECValue*)(intptr_t)1), |