diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-12-19 17:03:38 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-12-19 17:03:38 +0000 |
| commit | 9c148c8fc280b5dbf365b2235556f4869a309565 (patch) | |
| tree | 9c99fe4c2891fe6efa3eb760bd6a6f0d58dc5d4f /llvm/lib/CodeGen | |
| parent | 770b4b830a96c365bd12b6ea9219c5aee5aa74f4 (diff) | |
| download | bcm5719-llvm-9c148c8fc280b5dbf365b2235556f4869a309565.tar.gz bcm5719-llvm-9c148c8fc280b5dbf365b2235556f4869a309565.zip | |
Fix some release-assert warnings
llvm-svn: 61244
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/MachOWriter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/MachOWriter.cpp b/llvm/lib/CodeGen/MachOWriter.cpp index a34204f4e81..bb15a22b626 100644 --- a/llvm/lib/CodeGen/MachOWriter.cpp +++ b/llvm/lib/CodeGen/MachOWriter.cpp @@ -264,8 +264,8 @@ void MachOCodeEmitter::emitConstantPool(MachineConstantPool *MCP) { if (CP.empty()) return; // FIXME: handle PIC codegen - bool isPIC = TM.getRelocationModel() == Reloc::PIC_; - assert(!isPIC && "PIC codegen not yet handled for mach-o jump tables!"); + assert(TM.getRelocationModel() != Reloc::PIC_ && + "PIC codegen not yet handled for mach-o jump tables!"); // Although there is no strict necessity that I am aware of, we will do what // gcc for OS X does and put each constant pool entry in a section of constant @@ -305,8 +305,8 @@ void MachOCodeEmitter::emitJumpTables(MachineJumpTableInfo *MJTI) { if (JT.empty()) return; // FIXME: handle PIC codegen - bool isPIC = TM.getRelocationModel() == Reloc::PIC_; - assert(!isPIC && "PIC codegen not yet handled for mach-o jump tables!"); + assert(TM.getRelocationModel() != Reloc::PIC_ && + "PIC codegen not yet handled for mach-o jump tables!"); MachOWriter::MachOSection *Sec = MOW.getJumpTableSection(); unsigned TextSecIndex = MOW.getTextSection()->Index; |

