diff options
author | Richard Trieu <rtrieu@google.com> | 2011-09-10 01:07:54 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2011-09-10 01:07:54 +0000 |
commit | 2e3734e2d948af7c61c1957742811cdfca0e2516 (patch) | |
tree | 579bf1827d400e3d1b77653a8228a58c23a53b37 /lib/CodeGen/ELFCodeEmitter.cpp | |
parent | 1ad60c2adc9ed765a968747d0c548cda53bfd384 (diff) | |
download | external_llvm-2e3734e2d948af7c61c1957742811cdfca0e2516.zip external_llvm-2e3734e2d948af7c61c1957742811cdfca0e2516.tar.gz external_llvm-2e3734e2d948af7c61c1957742811cdfca0e2516.tar.bz2 |
Fix asserts in CodeGen from:
assert("error");
to:
assert(0 && "error");
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139449 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ELFCodeEmitter.cpp')
-rw-r--r-- | lib/CodeGen/ELFCodeEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/ELFCodeEmitter.cpp b/lib/CodeGen/ELFCodeEmitter.cpp index 3fb087c..660424c 100644 --- a/lib/CodeGen/ELFCodeEmitter.cpp +++ b/lib/CodeGen/ELFCodeEmitter.cpp @@ -155,7 +155,7 @@ void ELFCodeEmitter::emitConstantPool(MachineConstantPool *MCP) { CPSections.push_back(CstPool.SectionIdx); if (CPE.isMachineConstantPoolEntry()) - assert("CPE.isMachineConstantPoolEntry not supported yet"); + assert(0 && "CPE.isMachineConstantPoolEntry not supported yet"); // Emit the constant to constant pool section EW.EmitGlobalConstant(CPE.Val.ConstVal, CstPool); |