summaryrefslogtreecommitdiff
path: root/include/llvm/Argument.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Argument.h')
-rw-r--r--include/llvm/Argument.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Argument.h b/include/llvm/Argument.h
index 8776a488aa..ea735b546a 100644
--- a/include/llvm/Argument.h
+++ b/include/llvm/Argument.h
@@ -64,7 +64,7 @@ public:
///
static inline bool classof(const Argument *) { return true; }
static inline bool classof(const Value *V) {
- return V->getValueType() == ArgumentVal;
+ return V->getValueID() == ArgumentVal;
}
};