diff options
author | Duncan Sands <baldrick@free.fr> | 2007-12-11 12:20:47 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2007-12-11 12:20:47 +0000 |
commit | f41217d4facb8ecf43be9d23c93229aa7d24774c (patch) | |
tree | 9948ad6ff8c6cf66b4a99e6dc31fe4407245a324 /llvm/lib/Bitcode | |
parent | 595798f041bc92e63caaf8d11e5d7bf2f1053095 (diff) | |
download | bcm5719-llvm-f41217d4facb8ecf43be9d23c93229aa7d24774c.tar.gz bcm5719-llvm-f41217d4facb8ecf43be9d23c93229aa7d24774c.zip |
Fix compilation.
llvm-svn: 44864
Diffstat (limited to 'llvm/lib/Bitcode')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index c58d23ada21..3abac064683 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -196,7 +196,7 @@ static void WriteTypeTable(const ValueEnumerator &VE, BitstreamWriter &Stream) { Code = bitc::TYPE_CODE_INTEGER; TypeVals.push_back(cast<IntegerType>(T)->getBitWidth()); break; - case Type::PointerTyID: + case Type::PointerTyID: { const PointerType *PTy = cast<PointerType>(T); // POINTER: [pointee type] or [pointee type, address space] Code = bitc::TYPE_CODE_POINTER; @@ -206,6 +206,7 @@ static void WriteTypeTable(const ValueEnumerator &VE, BitstreamWriter &Stream) { else AbbrevToUse = PtrAbbrev; break; + } case Type::FunctionTyID: { const FunctionType *FT = cast<FunctionType>(T); |