commit | c6cf0923c7697078cbd6f77bedbd76e1f84ade90 | [log] [tgz] |
---|---|---|
author | Than McIntosh <thanm@google.com> | Thu Aug 17 11:21:33 2017 -0400 |
committer | Than McIntosh <thanm@google.com> | Thu Aug 17 16:04:03 2017 +0000 |
tree | 7c41eed8864480469909000b65a9bd6e06bfedc8 | |
parent | b87d276821422a70d028cbec49836dd81a17430b [diff] |
gollvm: clean up a couple of unused variables Remove two unused variables (compiler warnings cleanup). Change-Id: Ic3548178ae48c8d6cdfd269fc7c686d450aacaf6 Reviewed-on: https://go-review.googlesource.com/56411 Reviewed-by: Cherry Zhang <cherryyz@google.com>
diff --git a/llvm-gofrontend/go-llvm-builtins.cpp b/llvm-gofrontend/go-llvm-builtins.cpp index fd0f33a..73fd8e1 100644 --- a/llvm-gofrontend/go-llvm-builtins.cpp +++ b/llvm-gofrontend/go-llvm-builtins.cpp
@@ -85,7 +85,6 @@ void BuiltinTable::defineIntrinsicBuiltins() { Btype *boolType = tman_->boolType(); Btype *ptrType = tman_->pointerType(boolType); - Btype *oneBitIntegerType = tman_->integerType(true, 1); Btype *uint32Type = tman_->integerType(true, 32); unsigned bitsInPtr = tman_->datalayout()->getPointerSizeInBits(); Btype *uintPtrType = tman_->integerType(true, bitsInPtr);
diff --git a/unittests/BackendCore/BackendPointerExprTests.cpp b/unittests/BackendCore/BackendPointerExprTests.cpp index 64b4388..17e0830 100644 --- a/unittests/BackendCore/BackendPointerExprTests.cpp +++ b/unittests/BackendCore/BackendPointerExprTests.cpp
@@ -488,7 +488,6 @@ { FcnTestHarness h("foo"); Llvm_backend *be = h.be(); - Bfunction *func = h.func(); Location loc; // *(*int32)(unsafe.Pointer(uintptr(0x10101))) = 0