Instruction::isIdenticalToWhenDefined(): Check getNumOperands() in advance of std...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 2 Jun 2014 01:35:34 +0000 (01:35 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 2 Jun 2014 01:35:34 +0000 (01:35 +0000)
commitdf1913982b1d09b6cf01bc10f8ca97f50bb22a1b
treeda8a4684b122595c6eeb22067226a0bb987bef7f
parent10ecbcbbf0babd0129ad066a51cbf948ff7a870c
Instruction::isIdenticalToWhenDefined(): Check getNumOperands() in advance of std::equal(op) to appease MSVC Debug build.

MSVC Debug build is confused with (possibly invalid) op_begin(), if op_begin() == op_end().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210000 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/Instruction.cpp