We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1224c14 commit 4f92e08Copy full SHA for 4f92e08
llvm/include/llvm/Analysis/IR2Vec.h
@@ -211,7 +211,7 @@ class Vocabulary {
211
Vocabulary() = default;
212
LLVM_ABI Vocabulary(VocabVector &&Vocab) : Vocab(std::move(Vocab)) {}
213
214
- LLVM_ABI bool isValid() const { return !Vocab.empty(); };
+ LLVM_ABI bool isValid() const { return Vocab.size() == NumCanonicalEntries; };
215
LLVM_ABI unsigned getDimension() const;
216
/// Total number of entries (opcodes + canonicalized types + operand kinds)
217
static constexpr size_t getCanonicalSize() { return NumCanonicalEntries; }
0 commit comments