summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-12-10 20:35:47 +0000
committerChris Lattner <sabre@nondot.org>2004-12-10 20:35:47 +0000
commit45c62511406fc8165a1bae0720388ba08fa63807 (patch)
tree547440a64a945fc2bf35803565ad68f14e5e34ef
parentb7f5916e01d5a345395cf8cd3c0daa3100cd52f0 (diff)
downloadbcm5719-llvm-45c62511406fc8165a1bae0720388ba08fa63807.tar.gz
bcm5719-llvm-45c62511406fc8165a1bae0720388ba08fa63807.zip
Add missing accessor.
llvm-svn: 18775
-rw-r--r--llvm/include/llvm/Instructions.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/include/llvm/Instructions.h b/llvm/include/llvm/Instructions.h
index 62e6022ce1a..58cc1ee4f15 100644
--- a/llvm/include/llvm/Instructions.h
+++ b/llvm/include/llvm/Instructions.h
@@ -982,6 +982,8 @@ public:
//
inline const Value *getCondition() const { return Operands[0]; }
inline Value *getCondition() { return Operands[0]; }
+ void setCondition(Value *V) { Operands[0] = V; }
+
inline const BasicBlock *getDefaultDest() const {
return cast<BasicBlock>(Operands[1].get());
}
OpenPOWER on IntegriCloud