diff options
author | Chris Lattner <sabre@nondot.org> | 2008-10-12 00:31:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-10-12 00:31:50 +0000 |
commit | 3304e55f613ce34d9a14c3aaf06f5949408b3092 (patch) | |
tree | 8f0a6430e546177d1e0cc6c05e62d0d8d588e5bd /lib/CodeGen/CodeGenTypes.cpp | |
parent | 33d34a6f7a65be1821ab31c7d08b8e9f36d8759c (diff) |
silence release-assert warnings.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57392 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenTypes.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenTypes.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/CodeGen/CodeGenTypes.cpp b/lib/CodeGen/CodeGenTypes.cpp index c156f7f7a9..4734d28207 100644 --- a/lib/CodeGen/CodeGenTypes.cpp +++ b/lib/CodeGen/CodeGenTypes.cpp @@ -405,6 +405,7 @@ const llvm::Type *CodeGenTypes::ConvertTagDeclType(const TagDecl *TD) { } } else { assert(0 && "FIXME: Unknown tag decl kind!"); + abort(); } // Refine our Opaque type to ResultType. This can invalidate ResultType, so @@ -487,8 +488,9 @@ void RecordOrganizer::layoutStructFields(const ASTRecordLayout &RL) { llvm::APSInt FieldSize(32); bool isBitField = BitWidth->isIntegerConstantExpr(FieldSize, CGT.getContext()); - assert (isBitField && "Invalid BitField size expression"); - uint64_t BitFieldSize = FieldSize.getZExtValue(); + assert(isBitField && "Invalid BitField size expression"); + isBitField=isBitField; // silence warning. + uint64_t BitFieldSize = FieldSize.getZExtValue(); // Bitfield field info is different from other field info; // it actually ignores the underlying LLVM struct because |