aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Value.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2025-01-16 14:07:03 +0000
committerGitHub <noreply@github.com>2025-01-16 14:07:03 +0000
commitb769758056793472f8638152f30d840856e75b56 (patch)
tree5d3275669b332241ce112faa9e5421b1a7733cbd /llvm/lib/IR/Value.cpp
parent532e639ec66876092d7930cc8b89eb54ebf9c6b7 (diff)
downloadllvm-b769758056793472f8638152f30d840856e75b56.zip
llvm-b769758056793472f8638152f30d840856e75b56.tar.gz
llvm-b769758056793472f8638152f30d840856e75b56.tar.bz2
[Options] Use UseDerefAtPointSemantics cl::opt<bool>. (#123192)
It is used as boolean option, use cl::opt<bool> instead of vl::opt<unsigned>. PR: https://github.com/llvm/llvm-project/pull/123192
Diffstat (limited to 'llvm/lib/IR/Value.cpp')
-rw-r--r--llvm/lib/IR/Value.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Value.cpp b/llvm/lib/IR/Value.cpp
index b2ee758..65b6395 100644
--- a/llvm/lib/IR/Value.cpp
+++ b/llvm/lib/IR/Value.cpp
@@ -36,7 +36,7 @@
using namespace llvm;
-static cl::opt<unsigned> UseDerefAtPointSemantics(
+static cl::opt<bool> UseDerefAtPointSemantics(
"use-dereferenceable-at-point-semantics", cl::Hidden, cl::init(false),
cl::desc("Deref attributes and metadata infer facts at definition only"));