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 | 216b74c20cfa627b77bc9d192ae387d74a8d41fe (patch) | |
tree | 2fd5479fa61cadfe17d8e5317bb51490dfbfecf3 /lib | |
parent | 52cf47e331f53903c1ce28a31a060d3d3f2c1a93 (diff) |
Fix compilation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44864 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Bitcode/Writer/BitcodeWriter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Bitcode/Writer/BitcodeWriter.cpp b/lib/Bitcode/Writer/BitcodeWriter.cpp index c58d23ada2..3abac06468 100644 --- a/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/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); |