[llvm-commits] [llvm] r44864 - /llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp
Duncan Sands
baldrick at free.fr
Tue Dec 11 04:20:49 PST 2007
Author: baldrick
Date: Tue Dec 11 06:20:47 2007
New Revision: 44864
URL: http://llvm.org/viewvc/llvm-project?rev=44864&view=rev
Log:
Fix compilation.
Modified:
llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp
Modified: llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp?rev=44864&r1=44863&r2=44864&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp (original)
+++ llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp Tue Dec 11 06:20:47 2007
@@ -196,7 +196,7 @@
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 @@
else
AbbrevToUse = PtrAbbrev;
break;
+ }
case Type::FunctionTyID: {
const FunctionType *FT = cast<FunctionType>(T);
More information about the llvm-commits
mailing list