Silence a warning around the ipVal in TH-generated semantics code

Most instructions don't reference this variable, but it is in the signature of
every semantics function, leading to many unused variable warnings.  This commit
adds an underscore prefix to the variable name to silence the warning.
This commit is contained in:
Tristan Ravitch 2018-07-26 22:07:15 -07:00
parent e1c04f1b5a
commit feb2521a0b

View File

@ -105,7 +105,7 @@ instructionMatcher :: (OrdF a, LF.LiftF a, A.Architecture arch)
-> (Q Type, Q Type) -> (Q Type, Q Type)
-> Q (Exp, [Dec]) -> Q (Exp, [Dec])
instructionMatcher ltr ena ae lib archSpecificMatcher formulas operandResultType = do instructionMatcher ltr ena ae lib archSpecificMatcher formulas operandResultType = do
ipVarName <- newName "ipVal" ipVarName <- newName "_ipVal"
opcodeVar <- newName "opcode" opcodeVar <- newName "opcode"
operandListVar <- newName "operands" operandListVar <- newName "operands"
(libDefs, df) <- libraryDefinitions ltr ena ae (snd operandResultType) lib (libDefs, df) <- libraryDefinitions ltr ena ae (snd operandResultType) lib