mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-15 16:09:57 +00:00
quish a warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15954 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5527c0b6d1
commit
42db1a04ef
@ -1370,7 +1370,7 @@ ConstExpr: CAST '(' ConstVal TO Types ')' {
|
|||||||
if (!isa<PointerType>($3->getType())) {
|
if (!isa<PointerType>($3->getType())) {
|
||||||
$$ = ConstantExpr::get($1, $3, $5);
|
$$ = ConstantExpr::get($1, $3, $5);
|
||||||
} else {
|
} else {
|
||||||
const Type *IntPtrTy;
|
const Type *IntPtrTy = 0;
|
||||||
switch (CurModule.CurrentModule->getPointerSize()) {
|
switch (CurModule.CurrentModule->getPointerSize()) {
|
||||||
case Module::Pointer32: IntPtrTy = Type::IntTy; break;
|
case Module::Pointer32: IntPtrTy = Type::IntTy; break;
|
||||||
case Module::Pointer64: IntPtrTy = Type::LongTy; break;
|
case Module::Pointer64: IntPtrTy = Type::LongTy; break;
|
||||||
|
Loading…
Reference in New Issue
Block a user