From 5f9e8b971bc4cf1f34901389ef9fe3b6344a0a9c Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Mon, 11 Oct 2010 22:01:22 +0000 Subject: [PATCH] Use a sane mechanism for that assert. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116249 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/ARMFastISel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } }