[lld] r204221 - Fix warning 'enumeral and non-enumeral type in conditional expression'.
Simon Atanasyan
simon at atanasyan.com
Wed Mar 19 04:05:48 PDT 2014
Author: atanasyan
Date: Wed Mar 19 06:05:47 2014
New Revision: 204221
URL: http://llvm.org/viewvc/llvm-project?rev=204221&view=rev
Log:
Fix warning 'enumeral and non-enumeral type in conditional expression'.
Modified:
lld/trunk/lib/ReaderWriter/Native/WriterNative.cpp
Modified: lld/trunk/lib/ReaderWriter/Native/WriterNative.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/Native/WriterNative.cpp?rev=204221&r1=204220&r2=204221&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/Native/WriterNative.cpp (original)
+++ lld/trunk/lib/ReaderWriter/Native/WriterNative.cpp Wed Mar 19 06:05:47 2014
@@ -159,7 +159,7 @@ private:
v1.kindArch = v2.kindArch;
v1.kindValue = v2.kindValue;
v1.targetIndex = (v2.targetIndex == NativeReferenceIvarsV2::noTarget) ?
- NativeReferenceIvarsV1::noTarget : v2.targetIndex;
+ (uint16_t)NativeReferenceIvarsV1::noTarget : v2.targetIndex;
v1.addendIndex = this->getAddendIndex(v2.addend);
_referencesV1.push_back(v1);
}
More information about the llvm-commits
mailing list