From 8dafa2da8e334121e7a7e34cb62c304e40da2d6a Mon Sep 17 00:00:00 2001 From: Ivan Krasin Date: Fri, 29 Apr 2016 02:09:57 +0000 Subject: Fix build by casting to the proper int type. Reviewers: eugenis Differential Revision: http://reviews.llvm.org/D19706 llvm-svn: 267974 --- llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib') 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 { // 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); } -- cgit v1.2.3