From: Eric Christopher Date: Mon, 11 Oct 2010 22:01:22 +0000 (+0000) Subject: Use a sane mechanism for that assert. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5f9e8b971bc4cf1f34901389ef9fe3b6344a0a9c;p=oota-llvm.git Use a sane mechanism for that assert. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116249 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp index df3fe1bc275..d29b075ff8f 100644 --- a/lib/Target/ARM/ARMFastISel.cpp +++ b/lib/Target/ARM/ARMFastISel.cpp @@ -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(Obj))) - assert(false && "Alloca should have been handled earlier!"); + assert(!FuncInfo.StaticAllocaMap.count(cast(Obj)) && + "Alloca should have been handled earlier!"); return false; } }