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:
parent
9579beadfe
commit
2e3aa45491
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user