1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

I checked and no clients expect this to return null for unconditional branches

Simplify code and make it more uniform.

llvm-svn: 14077
This commit is contained in:
Chris Lattner 2004-06-08 22:03:05 +00:00
parent 9579beadfe
commit 2e3aa45491

View File

@ -126,7 +126,8 @@ public:
inline bool isConditional() const { return Operands.size() == 3; }
inline Value *getCondition() const {
return isUnconditional() ? 0 : reinterpret_cast<Value*>(Operands[2].get());
assert(isConditional() && "Cannot get condition of an uncond branch!");
return Operands[2].get();
}
void setCondition(Value *V) {