Fix spelling, patch contributed by Gabor Greif!
llvm-svn: 20343
diff --git a/llvm/lib/Transforms/IPO/RaiseAllocations.cpp b/llvm/lib/Transforms/IPO/RaiseAllocations.cpp
index 4d5650f..8a35bc3 100644
--- a/llvm/lib/Transforms/IPO/RaiseAllocations.cpp
+++ b/llvm/lib/Transforms/IPO/RaiseAllocations.cpp
@@ -186,7 +186,7 @@
// If no prototype was provided for free, we may need to cast the
// source pointer. This should be really uncommon, but it's necessary
- // just in case we are dealing with wierd code like this:
+ // just in case we are dealing with weird code like this:
// free((long)ptr);
//
Value *Source = *CS.arg_begin();
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index 870a901..4954c72 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -196,7 +196,7 @@
if (!I) return true; // Non-instructions all dominate instructions.
BasicBlock *PBB = I->getParent();
- // We don't want to allow wierd loops that might have the "if condition" in
+ // We don't want to allow weird loops that might have the "if condition" in
// the bottom of this block.
if (PBB == BB) return false;