diff options
| author | Eric Christopher <echristo@apple.com> | 2010-10-11 22:01:22 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@apple.com> | 2010-10-11 22:01:22 +0000 |
| commit | 9906ead3d25adb55167fee0f4c7dc9a1c5db4383 (patch) | |
| tree | b318c7dd333edbd04977fdf7791d599389af8ad0 | |
| parent | 57c821c5cfb2ac3d2ee691c1cf91eeea7307c458 (diff) | |
| download | external_llvm-9906ead3d25adb55167fee0f4c7dc9a1c5db4383.zip external_llvm-9906ead3d25adb55167fee0f4c7dc9a1c5db4383.tar.gz external_llvm-9906ead3d25adb55167fee0f4c7dc9a1c5db4383.tar.bz2 | |
Use a sane mechanism for that assert.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116249 91177308-0d34-0410-b5e6-96231b3b80d8
| -rw-r--r-- | lib/Target/ARM/ARMFastISel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp index df3fe1b..d29b075 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<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; } } |
