aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Bitcode
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2007-12-11 12:20:47 +0000
committerDuncan Sands <baldrick@free.fr>2007-12-11 12:20:47 +0000
commitc7ef4d1ec7e9b05c95f328e5ee833e7a06a749da (patch)
tree2fd5479fa61cadfe17d8e5317bb51490dfbfecf3 /lib/Bitcode
parentd2e8ecb02ce8b86cc2b81d77e3e1597563afd879 (diff)
downloadexternal_llvm-c7ef4d1ec7e9b05c95f328e5ee833e7a06a749da.zip
external_llvm-c7ef4d1ec7e9b05c95f328e5ee833e7a06a749da.tar.gz
external_llvm-c7ef4d1ec7e9b05c95f328e5ee833e7a06a749da.tar.bz2
Fix compilation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44864 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode')
-rw-r--r--lib/Bitcode/Writer/BitcodeWriter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Bitcode/Writer/BitcodeWriter.cpp b/lib/Bitcode/Writer/BitcodeWriter.cpp
index c58d23a..3abac06 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);