minor code style cleanup.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177576 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2013-03-20 21:04:53 +00:00
parent 7b1bea3ccb
commit 1ac186e009

View File

@ -211,7 +211,7 @@ Function::~Function() {
clearGC(); clearGC();
// Remove the intrinsicID from the Cache. // Remove the intrinsicID from the Cache.
if(getValueName() && isIntrinsic()) if (getValueName() && isIntrinsic())
getContext().pImpl->IntrinsicIDCache.erase(this); getContext().pImpl->IntrinsicIDCache.erase(this);
} }
@ -352,7 +352,7 @@ unsigned Function::getIntrinsicID() const {
LLVMContextImpl::IntrinsicIDCacheTy &IntrinsicIDCache = LLVMContextImpl::IntrinsicIDCacheTy &IntrinsicIDCache =
getContext().pImpl->IntrinsicIDCache; getContext().pImpl->IntrinsicIDCache;
if(!IntrinsicIDCache.count(this)) { if (!IntrinsicIDCache.count(this)) {
unsigned Id = lookupIntrinsicID(); unsigned Id = lookupIntrinsicID();
IntrinsicIDCache[this]=Id; IntrinsicIDCache[this]=Id;
return Id; return Id;