[llvm] r198288 - Rename 'assert' to something less loaded in CompileAssertHasType

Alp Toker alp at nuanti.com
Wed Jan 1 15:34:16 PST 2014


Author: alp
Date: Wed Jan  1 17:34:16 2014
New Revision: 198288

URL: http://llvm.org/viewvc/llvm-project?rev=198288&view=rev
Log:
Rename 'assert' to something less loaded in CompileAssertHasType

Suggested by Aaron Ballman.

Modified:
    llvm/trunk/unittests/IR/ValueMapTest.cpp

Modified: llvm/trunk/unittests/IR/ValueMapTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/IR/ValueMapTest.cpp?rev=198288&r1=198287&r2=198288&view=diff
==============================================================================
--- llvm/trunk/unittests/IR/ValueMapTest.cpp (original)
+++ llvm/trunk/unittests/IR/ValueMapTest.cpp Wed Jan  1 17:34:16 2014
@@ -118,7 +118,7 @@ TYPED_TEST(ValueMapTest, OperationsWork)
 template<typename ExpectedType, typename VarType>
 void CompileAssertHasType(VarType) {
   LLVM_ATTRIBUTE_UNUSED typedef char
-  assert[is_same<ExpectedType, VarType>::value ? 1 : -1];
+  NOT_SAME[is_same<ExpectedType, VarType>::value ? 1 : -1];
 }
 
 TYPED_TEST(ValueMapTest, Iteration) {





More information about the llvm-commits mailing list