projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert r199628: "[AArch64 NEON] Fix a bug caused by undef lane when generating VEXT."
[oota-llvm.git]
/
lib
/
IR
/
Value.cpp
diff --git
a/lib/IR/Value.cpp
b/lib/IR/Value.cpp
index 35808a658b411d45b0cbca1b6c290f0702173abe..2c90383edd8c2ecff8e015ac161529f94f216758 100644
(file)
--- a/
lib/IR/Value.cpp
+++ b/
lib/IR/Value.cpp
@@
-182,6
+182,8
@@
void Value::setName(const Twine &NewName) {
SmallString<256> NameData;
StringRef NameRef = NewName.toStringRef(NameData);
SmallString<256> NameData;
StringRef NameRef = NewName.toStringRef(NameData);
+ assert(NameRef.find_first_of(0) == StringRef::npos &&
+ "Null bytes are not allowed in names");
// Name isn't changing?
if (getName() == NameRef)
// Name isn't changing?
if (getName() == NameRef)
@@
-735,9
+737,5
@@
void ValueHandleBase::ValueIsRAUWd(Value *Old, Value *New) {
#endif
}
#endif
}
-// Default implementation for CallbackVH.
-void CallbackVH::allUsesReplacedWith(Value *) {}
-
-void CallbackVH::deleted() {
- setValPtr(NULL);
-}
+// Pin the vtable to this file.
+void CallbackVH::anchor() {}