mirror of
https://github.com/github/codeql.git
synced 2026-04-18 21:44:02 +02:00
Fix getType on ImplicitVarArgsSlice
It was not defined for built-in functions or for functions called via a function variable.
This commit is contained in:
@@ -455,8 +455,8 @@ module Public {
|
||||
CallNode getCallNode() { result = call }
|
||||
|
||||
override Type getType() {
|
||||
exists(Function f | f = call.getTarget() |
|
||||
result = f.getParameterType(f.getNumParameter() - 1)
|
||||
exists(SignatureType t | t = call.getCall().getCalleeType() |
|
||||
result = t.getParameterType(t.getNumParameter() - 1)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user