[llvm] r335797 - [CGProfile] Fix unused variable warning.

Michael J. Spencer via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 27 17:12:04 PDT 2018


Author: mspencer
Date: Wed Jun 27 17:12:04 2018
New Revision: 335797

URL: http://llvm.org/viewvc/llvm-project?rev=335797&view=rev
Log:
[CGProfile] Fix unused variable warning.

Modified:
    llvm/trunk/lib/Transforms/Instrumentation/CGProfile.cpp

Modified: llvm/trunk/lib/Transforms/Instrumentation/CGProfile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/CGProfile.cpp?rev=335797&r1=335796&r2=335797&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/CGProfile.cpp (original)
+++ llvm/trunk/lib/Transforms/Instrumentation/CGProfile.cpp Wed Jun 27 17:12:04 2018
@@ -37,7 +37,7 @@ PreservedAnalyses CGProfilePass::run(Mod
     Count = SaturatingAdd(Count, NewCount);
   };
   // Ignore error here.  Indirect calls are ignored if this fails.
-  (bool)Symtab.create(M);
+  (void)(bool)Symtab.create(M);
   for (auto &F : M) {
     if (F.isDeclaration())
       continue;




More information about the llvm-commits mailing list