[PATCH] D31981: Fix compiler error in Attributes.cpp

Konstantin Zhuravlyov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 12 17:10:18 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL300143: Fix compiler error in Attributes.cpp (authored by kzhuravl).

Changed prior to commit:
  https://reviews.llvm.org/D31981?vs=95047&id=95060#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D31981

Files:
  llvm/trunk/lib/IR/Attributes.cpp


Index: llvm/trunk/lib/IR/Attributes.cpp
===================================================================
--- llvm/trunk/lib/IR/Attributes.cpp
+++ llvm/trunk/lib/IR/Attributes.cpp
@@ -539,7 +539,8 @@
 }
 
 std::pair<unsigned, Optional<unsigned>> AttributeSet::getAllocSizeArgs() const {
-  return SetNode ? SetNode->getAllocSizeArgs() : std::make_pair(0, 0);
+  return SetNode ? SetNode->getAllocSizeArgs()
+                 : std::pair<unsigned, Optional<unsigned>>(0, 0);
 }
 
 std::string AttributeSet::getAsString(bool InAttrGrp) const {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31981.95060.patch
Type: text/x-patch
Size: 544 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170413/18fce2a5/attachment.bin>


More information about the llvm-commits mailing list