[cfe-commits] r135803 - /cfe/trunk/lib/Sema/SemaOverload.cpp
David Majnemer
david.majnemer at gmail.com
Fri Jul 22 14:09:05 PDT 2011
Author: majnemer
Date: Fri Jul 22 16:09:04 2011
New Revision: 135803
URL: http://llvm.org/viewvc/llvm-project?rev=135803&view=rev
Log:
kill a FIXME in IsIntegralPromotion
IsIntegralPromotion should consider the signedness of FromType when
calculating promotions. This, as of now, cannot be exercised on any
platform so there is no corresponding test.
Modified:
cfe/trunk/lib/Sema/SemaOverload.cpp
Modified: cfe/trunk/lib/Sema/SemaOverload.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaOverload.cpp?rev=135803&r1=135802&r2=135803&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaOverload.cpp (original)
+++ cfe/trunk/lib/Sema/SemaOverload.cpp Fri Jul 22 16:09:04 2011
@@ -1392,12 +1392,9 @@
ToType->isIntegerType()) {
// Determine whether the type we're converting from is signed or
// unsigned.
- bool FromIsSigned;
+ bool FromIsSigned = FromType->isSignedIntegerType();
uint64_t FromSize = Context.getTypeSize(FromType);
- // FIXME: Is wchar_t signed or unsigned? We assume it's signed for now.
- FromIsSigned = true;
-
// The types we'll try to promote to, in the appropriate
// order. Try each of these types.
QualType PromoteTypes[6] = {
More information about the cfe-commits
mailing list