mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-26 22:34:39 +00:00
Fix a couple of mistaken switch case fall-throughs. Thanks to Bill
for spotting these! llvm-svn: 60728
This commit is contained in:
parent
0ef5e583cd
commit
9e5cc22129
@ -332,11 +332,13 @@ bool X86FastISel::X86SelectAddress(Value *V, X86AddressMode &AM, bool isCall) {
|
|||||||
// Look past no-op inttoptrs.
|
// Look past no-op inttoptrs.
|
||||||
if (TLI.getValueType(U->getOperand(0)->getType()) == TLI.getPointerTy())
|
if (TLI.getValueType(U->getOperand(0)->getType()) == TLI.getPointerTy())
|
||||||
return X86SelectAddress(U->getOperand(0), AM, isCall);
|
return X86SelectAddress(U->getOperand(0), AM, isCall);
|
||||||
|
break;
|
||||||
|
|
||||||
case Instruction::PtrToInt:
|
case Instruction::PtrToInt:
|
||||||
// Look past no-op ptrtoints.
|
// Look past no-op ptrtoints.
|
||||||
if (TLI.getValueType(U->getType()) == TLI.getPointerTy())
|
if (TLI.getValueType(U->getType()) == TLI.getPointerTy())
|
||||||
return X86SelectAddress(U->getOperand(0), AM, isCall);
|
return X86SelectAddress(U->getOperand(0), AM, isCall);
|
||||||
|
break;
|
||||||
|
|
||||||
case Instruction::Alloca: {
|
case Instruction::Alloca: {
|
||||||
if (isCall) break;
|
if (isCall) break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user