From: Devang Patel Date: Wed, 22 Apr 2009 18:51:05 +0000 (+0000) Subject: Fix cut-n-pasto. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e2a17468d1e47ef430933b7a91c5c1c4669d7d8d;p=oota-llvm.git Fix cut-n-pasto. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69816 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/ScalarEvolutionExpander.cpp b/lib/Analysis/ScalarEvolutionExpander.cpp index 74c11183e81..80b47d89240 100644 --- a/lib/Analysis/ScalarEvolutionExpander.cpp +++ b/lib/Analysis/ScalarEvolutionExpander.cpp @@ -94,8 +94,8 @@ Value *SCEVExpander::InsertCastOfTo(Instruction::CastOps opcode, Value *V, Value *SCEVExpander::InsertNoopCastOfTo(Value *V, const Type *Ty) { Instruction::CastOps Op = CastInst::getCastOpcode(V, false, Ty, false); assert((Op == Instruction::BitCast || - Op == Instruction::Instruction::PtrToInt || - Op == Instruction::Instruction::IntToPtr) && + Op == Instruction::PtrToInt || + Op == Instruction::IntToPtr) && "InsertNoopCastOfTo cannot perform non-noop casts!"); assert(SE.getTypeSizeInBits(V->getType()) == SE.getTypeSizeInBits(Ty) && "InsertNoopCastOfTo cannot change sizes!");