From: Duncan Sands Date: Tue, 11 Dec 2007 12:20:47 +0000 (+0000) Subject: Fix compilation. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=216b74c20cfa627b77bc9d192ae387d74a8d41fe;p=oota-llvm.git Fix compilation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44864 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Bitcode/Writer/BitcodeWriter.cpp b/lib/Bitcode/Writer/BitcodeWriter.cpp index c58d23ada21..3abac064683 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(T)->getBitWidth()); break; - case Type::PointerTyID: + case Type::PointerTyID: { const PointerType *PTy = cast(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(T);