diff options
author | Pete Cooper <peter_cooper@apple.com> | 2015-05-06 22:55:46 +0000 |
---|---|---|
committer | Pete Cooper <peter_cooper@apple.com> | 2015-05-06 22:55:46 +0000 |
commit | cc151ccdcf5fb1b267b47759b1fd8bcf74ceb2cf (patch) | |
tree | c244e3d7397f86f974668d6035c07e7573cfa0cd /llvm | |
parent | 538ef562bd3212f3638f7f03638c456924dc4adc (diff) | |
download | bcm5719-llvm-cc151ccdcf5fb1b267b47759b1fd8bcf74ceb2cf.tar.gz bcm5719-llvm-cc151ccdcf5fb1b267b47759b1fd8bcf74ceb2cf.zip |
Remove unnecessary #ifndef NDEBUG guard around assert. NFC.
Found by Hal Finkel in the review of AttributeSets. http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20150504/275058.html
llvm-svn: 236662
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/IR/Attributes.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp index 7c9468cb158..4c7cdda01cb 100644 --- a/llvm/lib/IR/Attributes.cpp +++ b/llvm/lib/IR/Attributes.cpp @@ -819,12 +819,10 @@ AttributeSet AttributeSet::removeAttributes(LLVMContext &C, unsigned Index, if (!pImpl) return AttributeSet(); if (!Attrs.pImpl) return *this; -#ifndef NDEBUG // FIXME it is not obvious how this should work for alignment. // For now, say we can't pass in alignment, which no current use does. assert(!Attrs.hasAttribute(Index, Attribute::Alignment) && "Attempt to change alignment!"); -#endif // Add the attribute slots before the one we're trying to add. SmallVector<AttributeSet, 4> AttrSet; |