diff options
author | Ivan Krasin <krasin@chromium.org> | 2016-04-29 02:09:57 +0000 |
---|---|---|
committer | Ivan Krasin <krasin@chromium.org> | 2016-04-29 02:09:57 +0000 |
commit | 8dafa2da8e334121e7a7e34cb62c304e40da2d6a (patch) | |
tree | 1e6aef820946ab1b91fa361a8fd0931281a02a86 /llvm/lib/Transforms | |
parent | bc32b5cf8f4c9f8243fe7b914500bee3bb6473c0 (diff) | |
download | bcm5719-llvm-8dafa2da8e334121e7a7e34cb62c304e40da2d6a.tar.gz bcm5719-llvm-8dafa2da8e334121e7a7e34cb62c304e40da2d6a.zip |
Fix build by casting to the proper int type.
Reviewers: eugenis
Differential Revision: http://reviews.llvm.org/D19706
llvm-svn: 267974
Diffstat (limited to 'llvm/lib/Transforms')
-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); } |