diff options
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp b/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp index bfeafb032e6..3596038ce2c 100644 --- a/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp @@ -2137,7 +2137,7 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> { // Given a vector, extract its first element, and return all // zeroes if it is zero, and all ones otherwise. Value *LowerElementShadowExtend(IRBuilder<> &IRB, Value *S, Type *T) { - Value *S1 = IRB.CreateExtractElement(S, (int)0); + Value *S1 = IRB.CreateExtractElement(S, (uint64_t)0); Value *S2 = IRB.CreateICmpNE(S1, getCleanShadow(S1)); return CreateShadowCast(IRB, S2, T, /* Signed */ true); } |