aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Instructions.h
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
commitbfaf88a4d3dcd8ff82a8f0b7379466c4b0270043 (patch)
tree2cf94ada364ece431a158361d33905518f0d2126 /include/llvm/Instructions.h
parent152f19ac6514ec29e183ddcdf2ea71599638dc4c (diff)
downloadexternal_llvm-bfaf88a4d3dcd8ff82a8f0b7379466c4b0270043.zip
external_llvm-bfaf88a4d3dcd8ff82a8f0b7379466c4b0270043.tar.gz
external_llvm-bfaf88a4d3dcd8ff82a8f0b7379466c4b0270043.tar.bz2
Add missing accessor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18775 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Instructions.h')
-rw-r--r--include/llvm/Instructions.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h
index 62e6022..58cc1ee 100644
--- a/include/llvm/Instructions.h
+++ b/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());
}