[PATCH] D31981: Fix warning in Attributes.cpp

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 12 09:45:59 PDT 2017


arsenm added inline comments.


================
Comment at: lib/IR/Attributes.cpp:542
 std::pair<unsigned, Optional<unsigned>> AttributeSet::getAllocSizeArgs() const {
-  return SetNode ? SetNode->getAllocSizeArgs() : std::make_pair(0, 0);
 }
----------------
Could you just add u suffixes to the 0s instead?


https://reviews.llvm.org/D31981





More information about the llvm-commits mailing list