mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
quish a warning
llvm-svn: 15954
This commit is contained in:
parent
448910c216
commit
fb6d2225ff
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user