We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
#getArgOperand(int)
1 parent e5eebb6 commit 62c2dc2Copy full SHA for 62c2dc2
src/org/sosy_lab/llvm_j/Value.java
@@ -1017,10 +1017,11 @@ public List<Integer> getIndices() {
1017
/**
1018
* Returns the argument operand at the specified index.
1019
*
1020
- * @throws LLVMException if this value is not a function call instruction
+ * @throws IllegalStateException if this value is not a function call instruction
1021
* @see #isCallInst()
1022
*/
1023
- public Value getArgOperand(int index) throws LLVMException {
+ public Value getArgOperand(int index) {
1024
+ checkLlvmState(isCallInst(), "Value is not a call instruction: " + this);
1025
int numArgOperands = getNumArgOperands();
1026
if (numArgOperands <= index) {
1027
throw new IndexOutOfBoundsException(
0 commit comments