diff options
author | Chris Lattner <sabre@nondot.org> | 2005-02-24 05:32:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-02-24 05:32:09 +0000 |
commit | d1a326006df65470217b9f2f23a4cee2a9696646 (patch) | |
tree | 290bdfa73c98f2eee204f68021b64bcbd71a2901 /lib/VMCore/Instructions.cpp | |
parent | 7e6182319dd5baeb1b66bbdc5ab5bf2e9c541341 (diff) | |
download | external_llvm-d1a326006df65470217b9f2f23a4cee2a9696646.tar.gz external_llvm-d1a326006df65470217b9f2f23a4cee2a9696646.tar.bz2 external_llvm-d1a326006df65470217b9f2f23a4cee2a9696646.zip |
switch instructions only allow constantints for their values, be more specific.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20298 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Instructions.cpp')
-rw-r--r-- | lib/VMCore/Instructions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Instructions.cpp b/lib/VMCore/Instructions.cpp index 73183a344b..bc1bfcccf1 100644 --- a/lib/VMCore/Instructions.cpp +++ b/lib/VMCore/Instructions.cpp @@ -948,7 +948,7 @@ SwitchInst::~SwitchInst() { /// addCase - Add an entry to the switch instruction... /// -void SwitchInst::addCase(Constant *OnVal, BasicBlock *Dest) { +void SwitchInst::addCase(ConstantInt *OnVal, BasicBlock *Dest) { unsigned OpNo = NumOperands; if (OpNo+2 > ReservedSpace) resizeOperands(0); // Get more space! |