diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y index 1a4ad32a972..a2ebd19cb2d 100644 --- a/lib/AsmParser/llvmAsmParser.y +++ b/lib/AsmParser/llvmAsmParser.y @@ -1370,7 +1370,7 @@ ConstExpr: CAST '(' ConstVal TO Types ')' { if (!isa($3->getType())) { $$ = ConstantExpr::get($1, $3, $5); } else { - const Type *IntPtrTy; + const Type *IntPtrTy = 0; switch (CurModule.CurrentModule->getPointerSize()) { case Module::Pointer32: IntPtrTy = Type::IntTy; break; case Module::Pointer64: IntPtrTy = Type::LongTy; break;