[PATCH] D22798: Fix for compiling with clang <= 3.7 and g++6 headers.
Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 26 20:51:13 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL276831: Fix for compiling with clang <= 3.7 and g++6 headers (authored by vedantk).
Changed prior to commit:
https://reviews.llvm.org/D22798?vs=65476&id=65656#toc
Repository:
rL LLVM
https://reviews.llvm.org/D22798
Files:
cfe/trunk/lib/Driver/Tools.cpp
Index: cfe/trunk/lib/Driver/Tools.cpp
===================================================================
--- cfe/trunk/lib/Driver/Tools.cpp
+++ cfe/trunk/lib/Driver/Tools.cpp
@@ -3819,13 +3819,13 @@
// match that of llvm-gcc and Apple GCC before that.
PIC = ToolChain.isPICDefault() && ToolChain.isPICDefaultForced();
- return std::make_tuple(llvm::Reloc::DynamicNoPIC, PIC ? 2 : 0, false);
+ return std::make_tuple(llvm::Reloc::DynamicNoPIC, PIC ? 2U : 0U, false);
}
if (PIC)
- return std::make_tuple(llvm::Reloc::PIC_, IsPICLevelTwo ? 2 : 1, PIE);
+ return std::make_tuple(llvm::Reloc::PIC_, IsPICLevelTwo ? 2U : 1U, PIE);
- return std::make_tuple(llvm::Reloc::Static, 0, false);
+ return std::make_tuple(llvm::Reloc::Static, 0U, false);
}
static const char *RelocationModelName(llvm::Reloc::Model Model) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22798.65656.patch
Type: text/x-patch
Size: 850 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160727/9cf701d7/attachment.bin>
More information about the cfe-commits
mailing list