Don't assert when dealing with unsigned casts of lvalues.  Fixes PR5961.

llvm-svn: 92866
diff --git a/clang/test/Sema/compare.c b/clang/test/Sema/compare.c
index a22e721..579c3e5 100644
--- a/clang/test/Sema/compare.c
+++ b/clang/test/Sema/compare.c
@@ -266,3 +266,11 @@
   if ((x > y ? x : y) > z)
     (void) 0;
 }
+
+// PR5961
+extern char *ptr4;
+void test4() {
+  long value;
+  if (value < (unsigned long) &ptr4) // expected-warning {{comparison of integers of different signs}}
+    return;
+}