[llvm] r331132 - [LLVM-C] Eliminate an unused variable in a test.

whitequark via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 28 19:01:34 PDT 2018


Author: whitequark
Date: Sat Apr 28 19:01:34 2018
New Revision: 331132

URL: http://llvm.org/viewvc/llvm-project?rev=331132&view=rev
Log:
[LLVM-C] Eliminate an unused variable in a test.

This was introduced in r331123 and broke -Werror bots.

Modified:
    llvm/trunk/tools/llvm-c-test/debuginfo.c

Modified: llvm/trunk/tools/llvm-c-test/debuginfo.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-c-test/debuginfo.c?rev=331132&r1=331131&r2=331132&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-c-test/debuginfo.c (original)
+++ llvm/trunk/tools/llvm-c-test/debuginfo.c Sat Apr 28 19:01:34 2018
@@ -45,9 +45,8 @@ int llvm_test_dibuilder(void) {
   LLVMMetadataRef ImportedModule =
     LLVMDIBuilderCreateImportedModuleFromModule(DIB, Module, OtherModule,
                                                 File, 42);
-  LLVMMetadataRef AliasImportedModule =
-    LLVMDIBuilderCreateImportedModuleFromAlias(DIB, Module, ImportedModule,
-                                               File, 42);
+  LLVMDIBuilderCreateImportedModuleFromAlias(DIB, Module, ImportedModule,
+                                             File, 42);
 
   LLVMMetadataRef Int64Ty =
     LLVMDIBuilderCreateBasicType(DIB, "Int64", 5, 64, 0);




More information about the llvm-commits mailing list