projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Const-correct and prevent a copy of a SmallPtrSet.
[oota-llvm.git]
/
lib
/
IR
/
IntrinsicInst.cpp
diff --git
a/lib/IR/IntrinsicInst.cpp
b/lib/IR/IntrinsicInst.cpp
index 554f2beb13e4c31e9b3a66e98ef06c819d1a8f13..57252840bf01a8970157692fc43bb51a19517d4b 100644
(file)
--- a/
lib/IR/IntrinsicInst.cpp
+++ b/
lib/IR/IntrinsicInst.cpp
@@
-35,7
+35,7
@@
static Value *CastOperand(Value *C) {
if (ConstantExpr *CE = dyn_cast<ConstantExpr>(C))
if (CE->isCast())
return CE->getOperand(0);
if (ConstantExpr *CE = dyn_cast<ConstantExpr>(C))
if (CE->isCast())
return CE->getOperand(0);
- return
NULL
;
+ return
nullptr
;
}
Value *DbgInfoIntrinsic::StripCast(Value *C) {
}
Value *DbgInfoIntrinsic::StripCast(Value *C) {
@@
-57,7
+57,7
@@
Value *DbgDeclareInst::getAddress() const {
if (MDNode* MD = cast_or_null<MDNode>(getArgOperand(0)))
return MD->getOperand(0);
else
if (MDNode* MD = cast_or_null<MDNode>(getArgOperand(0)))
return MD->getOperand(0);
else
- return
NULL
;
+ return
nullptr
;
}
//===----------------------------------------------------------------------===//
}
//===----------------------------------------------------------------------===//