[llvm-commits] [poolalloc] r130184 - /poolalloc/trunk/lib/AssistDS/TypeChecks.cpp

Will Dietz wdietz2 at illinois.edu
Mon Apr 25 20:41:53 PDT 2011


Author: wdietz2
Date: Mon Apr 25 22:41:53 2011
New Revision: 130184

URL: http://llvm.org/viewvc/llvm-project?rev=130184&view=rev
Log:
TypeChecks.cpp: Add explicit braces to make compiler happy.
No functionality changed.

Modified:
    poolalloc/trunk/lib/AssistDS/TypeChecks.cpp

Modified: poolalloc/trunk/lib/AssistDS/TypeChecks.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/AssistDS/TypeChecks.cpp?rev=130184&r1=130183&r2=130184&view=diff
==============================================================================
--- poolalloc/trunk/lib/AssistDS/TypeChecks.cpp (original)
+++ poolalloc/trunk/lib/AssistDS/TypeChecks.cpp Mon Apr 25 22:41:53 2011
@@ -284,7 +284,7 @@
   Instruction *I = CS.getInstruction();
 
   // Special case handling of certain libc allocation functions here.
-  if (Function *F = dyn_cast<Function>(Callee))
+  if (Function *F = dyn_cast<Function>(Callee)) {
     if (F->isIntrinsic()) {
       switch(F->getIntrinsicID()) {
       case Intrinsic::memcpy: 
@@ -326,6 +326,7 @@
       CallInst *CI = CallInst::Create(F, Args.begin(), Args.end());
       CI->insertAfter(BCI_Dest);
     }
+  }
 
 
   return true;





More information about the llvm-commits mailing list