summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorIvan Krasin <krasin@chromium.org>2016-04-29 02:09:57 +0000
committerIvan Krasin <krasin@chromium.org>2016-04-29 02:09:57 +0000
commit8dafa2da8e334121e7a7e34cb62c304e40da2d6a (patch)
tree1e6aef820946ab1b91fa361a8fd0931281a02a86 /llvm/lib
parentbc32b5cf8f4c9f8243fe7b914500bee3bb6473c0 (diff)
downloadbcm5719-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')
-rw-r--r--llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp2
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);
}
OpenPOWER on IntegriCloud