Index: llvm/trunk/lib/IR/Instruction.cpp =================================================================== --- llvm/trunk/lib/IR/Instruction.cpp +++ llvm/trunk/lib/IR/Instruction.cpp @@ -515,9 +515,8 @@ case Instruction::CatchRet: return true; case Instruction::Call: - return !cast(this)->doesNotAccessMemory(); case Instruction::Invoke: - return !cast(this)->doesNotAccessMemory(); + return !cast(this)->doesNotAccessMemory(); case Instruction::Store: return !cast(this)->isUnordered(); } @@ -535,9 +534,8 @@ case Instruction::CatchRet: return true; case Instruction::Call: - return !cast(this)->onlyReadsMemory(); case Instruction::Invoke: - return !cast(this)->onlyReadsMemory(); + return !cast(this)->onlyReadsMemory(); case Instruction::Load: return !cast(this)->isUnordered(); }