summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-11 13:18:13 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-11 13:18:13 +0000
commit70a729dfd549fe1ef4fe0ce9c49e54ac357ac93b (patch)
tree81f1b335024e600489a1a837e8fc54df2cfcb144 /llvm/lib/IR
parent8981d6c9452bf1dd2d3be9b9bddc3d14a9acc280 (diff)
downloadbcm5719-llvm-70a729dfd549fe1ef4fe0ce9c49e54ac357ac93b.tar.gz
bcm5719-llvm-70a729dfd549fe1ef4fe0ce9c49e54ac357ac93b.zip
Require members of llvm.used to be named.
The effect of llvm.used is to introduce an invisible reference, so this seems a reasonable restriction. It will be used to provide an easy ordering of the entries in llvm.used. llvm-svn: 183743
Diffstat (limited to 'llvm/lib/IR')
-rw-r--r--llvm/lib/IR/Verifier.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp
index 41364b2e6a4..f8774bc3d9d 100644
--- a/llvm/lib/IR/Verifier.cpp
+++ b/llvm/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);
}
}
}
OpenPOWER on IntegriCloud