summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-04-13 23:34:11 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-04-13 23:34:11 +0000
commit780792dc86da5a7ccac263ab71bbcc56365cf83e (patch)
treee703fb7fb7d63b12a46bbb88d959bfb6ea6b2885
parentc48b976c08be8f0e75d6efef8fa7abbb41912d27 (diff)
downloadbcm5719-llvm-780792dc86da5a7ccac263ab71bbcc56365cf83e.tar.gz
bcm5719-llvm-780792dc86da5a7ccac263ab71bbcc56365cf83e.zip
Fix -Asserts warnings.
llvm-svn: 101191
-rw-r--r--llvm/include/llvm/ADT/ImmutableSet.h2
-rw-r--r--llvm/utils/unittest/googletest/include/gtest/internal/gtest-linked_ptr.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm/ADT/ImmutableSet.h b/llvm/include/llvm/ADT/ImmutableSet.h
index 65e70e279ab..70c3caf2a06 100644
--- a/llvm/include/llvm/ADT/ImmutableSet.h
+++ b/llvm/include/llvm/ADT/ImmutableSet.h
@@ -189,6 +189,8 @@ public:
unsigned verify() const {
unsigned HL = getLeft() ? getLeft()->verify() : 0;
unsigned HR = getRight() ? getRight()->verify() : 0;
+ (void) HL;
+ (void) HR;
assert(getHeight() == ( HL > HR ? HL : HR ) + 1
&& "Height calculation wrong");
diff --git a/llvm/utils/unittest/googletest/include/gtest/internal/gtest-linked_ptr.h b/llvm/utils/unittest/googletest/include/gtest/internal/gtest-linked_ptr.h
index f98af0b123b..d4c7a39b0ec 100644
--- a/llvm/utils/unittest/googletest/include/gtest/internal/gtest-linked_ptr.h
+++ b/llvm/utils/unittest/googletest/include/gtest/internal/gtest-linked_ptr.h
@@ -176,6 +176,7 @@ class linked_ptr {
// Sole ownership by this linked_ptr object is required.
T* release() {
bool last = link_.depart();
+ (void) last;
assert(last);
T* v = value_;
value_ = NULL;
OpenPOWER on IntegriCloud