diff options
Diffstat (limited to 'lib/IR/Verifier.cpp')
-rw-r--r-- | lib/IR/Verifier.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/IR/Verifier.cpp b/lib/IR/Verifier.cpp index 41364b2..f8774bc 100644 --- a/lib/IR/Verifier.cpp +++ b/lib/IR/Verifier.cpp @@ -467,6 +467,7 @@ void Verifier::visitGlobalVariable(GlobalVariable &GV) { Assert1( isa<GlobalVariable>(V) || isa<Function>(V) || isa<GlobalAlias>(V), "invalid llvm.used member", V); + Assert1(V->hasName(), "members of llvm.used must be named", V); } } } |