diff options
Diffstat (limited to 'compilerplugins/clang/functionaddress.hxx')
-rw-r--r-- | compilerplugins/clang/functionaddress.hxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compilerplugins/clang/functionaddress.hxx b/compilerplugins/clang/functionaddress.hxx index 93241ea5b4b0..266788a24119 100644 --- a/compilerplugins/clang/functionaddress.hxx +++ b/compilerplugins/clang/functionaddress.hxx @@ -88,7 +88,10 @@ public: return true; } - bool VisitUnaryAddrOf(UnaryOperator const * expr) { + bool VisitUnaryOperator(UnaryOperator * expr) { + if (expr->getOpcode() != UO_AddrOf) { + return Base::VisitUnaryOperator(expr); + } if (this->ignoreLocation(expr)) { return true; } |