[llvm-commits] [llvm] r49740 - /llvm/branches/ggreif/use-diet/include/llvm/Instructions.h

Gabor Greif ggreif at gmail.com
Tue Apr 15 14:08:42 PDT 2008


Author: ggreif
Date: Tue Apr 15 16:08:42 2008
New Revision: 49740

URL: http://llvm.org/viewvc/llvm-project?rev=49740&view=rev
Log:
ooops, fix linker error

Modified:
    llvm/branches/ggreif/use-diet/include/llvm/Instructions.h

Modified: llvm/branches/ggreif/use-diet/include/llvm/Instructions.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/use-diet/include/llvm/Instructions.h?rev=49740&r1=49739&r2=49740&view=diff

==============================================================================
--- llvm/branches/ggreif/use-diet/include/llvm/Instructions.h (original)
+++ llvm/branches/ggreif/use-diet/include/llvm/Instructions.h Tue Apr 15 16:08:42 2008
@@ -1783,11 +1783,11 @@
 public:
   static SwitchInst *Create(Value *Value, BasicBlock *Default, unsigned NumCases,
                             Instruction *InsertBefore = 0) {
-    return new(0) SwitchInst(Value, Default, NumCases, InsertBefore);
+    return new SwitchInst(Value, Default, NumCases, InsertBefore);
   }
   static SwitchInst *Create(Value *Value, BasicBlock *Default, unsigned NumCases,
                             BasicBlock *InsertAtEnd) {
-    return new(0) SwitchInst(Value, Default, NumCases, InsertAtEnd);
+    return new SwitchInst(Value, Default, NumCases, InsertAtEnd);
   }
   ~SwitchInst();
 





More information about the llvm-commits mailing list