diff options
author | Chris Lattner <sabre@nondot.org> | 2004-08-20 18:07:39 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-08-20 18:07:39 +0000 |
commit | 42db1a04ef97ba126898c24f7ee76dcd2716c71c (patch) | |
tree | d0a52a8c14d65bbb2429579b048881481233c42c | |
parent | 5527c0b6d1bda2c63212f91837792663469fd764 (diff) | |
download | external_llvm-42db1a04ef97ba126898c24f7ee76dcd2716c71c.zip external_llvm-42db1a04ef97ba126898c24f7ee76dcd2716c71c.tar.gz external_llvm-42db1a04ef97ba126898c24f7ee76dcd2716c71c.tar.bz2 |
quish a warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15954 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/AsmParser/llvmAsmParser.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y index 1a4ad32..a2ebd19 100644 --- a/lib/AsmParser/llvmAsmParser.y +++ b/lib/AsmParser/llvmAsmParser.y @@ -1370,7 +1370,7 @@ ConstExpr: CAST '(' ConstVal TO Types ')' { if (!isa<PointerType>($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; |