diff options
Diffstat (limited to 'compilerplugins/clang/constantparam.cxx')
-rw-r--r-- | compilerplugins/clang/constantparam.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compilerplugins/clang/constantparam.cxx b/compilerplugins/clang/constantparam.cxx index f5a3d5317dd1..d748919b0c7d 100644 --- a/compilerplugins/clang/constantparam.cxx +++ b/compilerplugins/clang/constantparam.cxx @@ -97,6 +97,8 @@ void ConstantParam::addToCallSet(const FunctionDecl* functionDecl, int paramInde if (!functionDecl->getNameInfo().getLoc().isValid()) return; + if (functionDecl->isVariadic()) + return; if (ignoreLocation(functionDecl)) return; // ignore stuff that forms part of the stable URE interface |