Use a sane mechanism for that assert.
authorEric Christopher <echristo@apple.com>
Mon, 11 Oct 2010 22:01:22 +0000 (22:01 +0000)
committerEric Christopher <echristo@apple.com>
Mon, 11 Oct 2010 22:01:22 +0000 (22:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116249 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMFastISel.cpp

index df3fe1bc2755778d6ac591447ee68a0bf8a360b9..d29b075ff8f19f22cdbb91d123bc0d57719b4b78 100644 (file)
@@ -590,8 +590,8 @@ bool ARMFastISel::ARMComputeRegOffset(const Value *Obj, unsigned &Reg,
     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;
     }
   }