[llvm-commits] [llvm] r116249 - /llvm/trunk/lib/Target/ARM/ARMFastISel.cpp

Eric Christopher echristo at apple.com
Mon Oct 11 15:01:23 PDT 2010


Author: echristo
Date: Mon Oct 11 17:01:22 2010
New Revision: 116249

URL: http://llvm.org/viewvc/llvm-project?rev=116249&view=rev
Log:
Use a sane mechanism for that assert.

Modified:
    llvm/trunk/lib/Target/ARM/ARMFastISel.cpp

Modified: llvm/trunk/lib/Target/ARM/ARMFastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMFastISel.cpp?rev=116249&r1=116248&r2=116249&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMFastISel.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMFastISel.cpp Mon Oct 11 17:01:22 2010
@@ -590,8 +590,8 @@
     break;
     case Instruction::Alloca: {
       // Don't handle dynamic allocas.
-      if (FuncInfo.StaticAllocaMap.count(cast<AllocaInst>(Obj)))
-        assert(false && "Alloca should have been handled earlier!");
+      assert(!FuncInfo.StaticAllocaMap.count(cast<AllocaInst>(Obj)) &&
+             "Alloca should have been handled earlier!");
       return false;
     }
   }





More information about the llvm-commits mailing list